LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there anyway that i can make a boolean value display 3 different states?

I'm building a vi frontpanel to simulate water and air flowing through a system. problem is that  the wate and air flow through the same pipe at different times and i'd like to show this. Is there anyway it can get the boolean variable to display two different colours in the TRUE state. ie one for air and the other for water.
0 Kudos
Message 1 of 8
(4,181 Views)
Hi havok,

a boolean indicator is limited to two states. But you can change the properties of each state (including color) by using property nodes.

But then it could be easier to use a color box instead!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(4,174 Views)
Hi,
 
You can change the color of a boolean indicator with a property node
Message 3 of 8
(4,174 Views)
You can use the Color Box from the numeric palette to display different colors. For shapes other than rectangular you can mask the color box with some decorations. If you want to display predefined images you can use the picture ring.
Hope this helps,
Dave
Greets, Dave
0 Kudos
Message 4 of 8
(4,170 Views)
This link shows one way to use a combination of the ideas given above.
Message 5 of 8
(4,148 Views)
You are displaying the state of two different objects.  Why not use two LEDs side by side?
 

Message Edited by tbob on 02-23-2007 09:36 AM

- tbob

Inventor of the WORM Global
Message 6 of 8
(4,138 Views)
Anything that has more than 2 states is no longer a boolean! 😮
 
Just use a "colorbox" LED and assign colors to all the states you want, then select the state with e.g. a number, ring, enum, etc. as desired.
 
Here isn an old example: 4ColorLED.vi (modify as needed. For more details, check out the old thread).
 
If you have LabVIEW 8.0 or higher, you cold even make an Xcontrol.
Message 7 of 8
(4,119 Views)
Thanks guys. I actually ended up using a combination of the ideas you guys gave me. I used two booleans placed one on top of the other with different colours used to indicate the water and air and i used property nodes to make one boolean invisible depending on what i wanted to indicate as flowing throught the system
0 Kudos
Message 8 of 8
(4,077 Views)