05-06-2020 05:41 AM - edited 05-06-2020 05:42 AM
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
Solved! Go to Solution.
05-06-2020 05:56 AM
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…
05-06-2020 06:14 AM
Thanks again sir for your help just the thing i was looking for.
05-06-2020 06:35 AM
But there a problem i need to pass 3 arguments in just 1 if else loop how could it be done.
05-06-2020 06:42 AM - edited 05-06-2020 06:44 AM
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:
05-06-2020 07:23 AM
Thank's sir that array method was much simpler for me to work, thank you.