12-03-2015 09:18 AM
Hi, can anyone suggest how to make three condition? I have t value that changes in time and I need to exclude three cases.
12-03-2015 09:21 AM
You should not follow that strict flow chart. You should use a case structure to distinguish the different states.
Regarding the LED color: The value of a LED is boolean: It is ON or OFF.
But the color is an arbitrary RGB (numeric) value. So you can change the ON color to RED, YELLOW or GREEN. After setting that color, you can turn on the LED (set its value to TRUE).
Norbert
12-03-2015 09:33 AM - edited 12-03-2015 09:37 AM
I would use something like this VI I made a long time ago to as the input to a case to turn on proper LED.
Notice the "=" is not the standard "=" primitive. Search for rounding errors and machine epsilon and you will see why I used it.
But in a nutshell remember when comparing non integers 1.0000000001 and 1.0000000000 are NOT equal!
12-03-2015 10:05 AM
Can you send me that Labview file?
12-03-2015 10:11 AM
The image RTSLVU posted is a "snippet". It contains the code. It states version 2015, so you'll need LV 2015 to load it.
Norbert
12-03-2015 10:15 AM
What LabVIEW version are you using?
12-03-2015 11:35 AM
2014 version
12-03-2015 12:04 PM
Here you go.