Hello Good Evening,
Is there any color indicator that can display color according to values
like example,
if value<10:
displays "Green Color"
else if 10<value<20:
displays "Yellow Color"
else value>20:
displays "Red Color"
is there any indicator which can help me with this in labview if there is it would be very helpful
Thankyou
已解决! 转到解答。
Hi Larry,
@LarryDante wrote:
Is there any color indicator that can display color according to values
like example,
if value<10:
displays "Green Color"
else if 10<value<20:
displays "Yellow Color"
else value>20:
displays "Red Color"
Yes, there is!
Use a ColorBox to display colors. And use color constants to define the colors in your case structure…
Thanks again sir for your help just the thing i was looking for.
Hi Larry,
the case structure also can handle numeric values at its selector input, please read the help for that structure!
(Warning: this works best with integer data, float values might produce unexpected results.)
Additionally a case structure also supports more than just 2 cases: again read the help…
Or you use some array functions like in this simple example:

Thank's sir that array method was much simpler for me to work, thank you.