LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Show T and F boolean text simultaneously?

I would like to show both True and False boolean text values simultaneously at different locations. Is there any way to do this? I want to use a toggle or rocker switch and be able to see both values at all times.

In an old post Ben and TiTou showed methods to move the text around using property nodes and formating the text with spaces or CR. These only show the selected value, not both.

If the Label, Caption, and Boolean text are all made visible, the effect can be produced. However, this does not allow for programmatic change of all the text, as for language changes, because the label cannot be changed.

For buttons (where the boolean text is usually used) it does not matter, but for rocker and toggle switches this would allow a nicer, more professional GUI. I cannot think of a use case for the transitions texts (T>F and F>T) with these switches, but any option to display the boolean texts simultaneously would have to include those for compatibility.

I have attached a VI which shows the look I would like to achieve.

Lynn

Message Edited by johnsold on 07-03-2008 09:52 AM
0 Kudos
Message 1 of 6
(3,112 Views)
Hi Lynn,

I would use a simple text indicator (classic look, set to transparent) to immitate that behaviour. Instead of changing the boolean state texts you simply write to that indicator...

Just a thought: you can create an XControl to hide that functionality from your block diagramSmiley Wink

Btw.: Where's your vi? Ok, now it's there...


Message Edited by GerdW on 07-03-2008 03:53 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,104 Views)
Hi Lynn,

You forgot to attach the VI. However, I think your question is clear enough witho
ut it.
0 Kudos
Message 3 of 6
(3,100 Views)
Would attached example be an acceptable solution ?
0 Kudos
Message 4 of 6
(3,089 Views)
You could also make a custom control that's your boolean and two transparent string indicators in a cluster.
0 Kudos
Message 5 of 6
(3,075 Views)
JB,

Thanks. That seems to be closer to what I was thinking. I can make that work for my current project.

The formatting can get messy across platforms and with various fonts. This is where two or more separate strings would be better.

Lynn
0 Kudos
Message 6 of 6
(3,066 Views)