β08-13-2015 09:30 AM
Hello,
We are new to the labview programming. We are currently writing a program to use at our facility that will involve mainly temperature sensors and a few solenoid controls. We will have a thermometer type display on the "front panel". The problem is that when we wire the output of multiple while loops in a flat sequence to the thermometer we get an error. I assume this error is due to having multiple inputs, how can we solve this?
Thanks,
Josh and Vaishnavi
β08-13-2015 09:36 AM
Here are some free training tools primarily focused on LabVIEW and NI hardware to help get started.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
β08-13-2015 09:37 AM
Hi Josh,
put your measurement values in an array. Use an IndexArray function to index the value to be displayed. Make the index control available to the userβ¦
I assume this error is due to having multiple inputs, how can we solve this?
By THINKING DATAFLOW! π
β08-13-2015 09:53 AM
A plain thermometer can only display exactly one temperature at a time.
If you have multiple values, you need to decide which value you want to display. You could place several thermometer indicators, you could average all values, display only the latest, etc.
If several stages of your program need to update the same indicator at different times, it is best to change your flat sequence to a state machine architecture. It will be much more maintainable. (A less elegant alternative would be the use of local variables.)
Please show us your code.
β08-13-2015 11:12 AM
Maybe I am misunderstanding the question but sliders can be added to a thermometer indicator to show multiple values. Use a cluster to bundle the values together.
β08-13-2015 11:23 AM
@aputman wrote:
Maybe I am misunderstanding the question but sliders can be added to a thermometer indicator to show multiple values. Use a cluster to bundle the values together.
I intentionally did not bring that up, because thermometers are not really suitable for multiple sliders. You would need to carefully play with the fill setting and the sorting of values. I recommend against it.