LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Mathan

Special LED control with three states - Default, ON, OFF

Status: New

3 states.PNG

There are lot of posts in the forum regarding the design of a boolean control with 3 states "On", "Off", "Default". This is very useful when during some tests the LED should initially be in one color say "black", if test passes, it should display "green" color and if test fails, it should display "red" color. If this comes as a special LED in the front panel, this will prevent extra coding.

 

 

5 Comments
JackDunaway
Trusted Enthusiast
I understand the use as an indicator; how would it behave as a control?
altenbach
Knight of NI

How about the Mixed Checkbox?

 

It definitely needs some logic, because a boolean can only have two states. (see also this example).

 You could easily make an xcontrol using a colorbox my color LED. 😉

Mathan
Trusted Enthusiast

@JackDunaway, Yes you are right, i wrongly mentioned it as control instead of indicator.

 

@Altenbach, Thanks for the useful links....

muks
Proven Zealot
You can also use an invoke node to "reinitialize to default" after setting the black color as the default one right? Is your suggestion different from my understanding? you can use a property node also
Message Edited by muks on 10-05-2009 02:29 PM
altenbach
Knight of NI

muks, setting something to default only resets the value, not any property, such as color.

 

So, this would only work if it is implemented as a colorbox, picture ring, etc..