LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

toggle boolean buttons



jeet wrote:
Altenbach,
How did u make a single boolean object with two button (start/stop) appearance ?

 
Of course the question is why would you clutter your front panel with two boolean controls (even simulated or radiobutton) if the entire system can only have two states overall. You don't even need the control editor! Why not use a plain button and color the states red and green and change the boolean text for the two states "Start" and "Stop" and used it for both. If the START is active, only STOP is needed and vice versa.
 
I somewhat disagree with André. One should always strive for simplicity. A multi-event structure and a bunch local variables is an awfully complicated way to do things, and certainly not faster.

0 Kudos
Message 11 of 14
(1,223 Views)
Hi Altenbach,

I wasn't implying that it would execute faster, merely that it was faster to implement that the custom control.

And I agree with you that the last option you provide the boolean with the two different texts, one for true and one for false is even more simple and very fast to implement.
Regards,
André (CLA, CLED)
0 Kudos
Message 12 of 14
(1,213 Views)
It kinda made me mad to find that it took me 15min to figure out how you did the custom control Altenbach Smiley Sad  Your folowups were better.  I was busy trying to directly answer the question.  Finding the cleanest, most efficient solution is a much smarter approach.  Thanks for the lesson.
Jim

LV 2020
0 Kudos
Message 13 of 14
(1,204 Views)


lmtis wrote:
It kinda made me mad to find that it took me 15min to figure out how you did the custom control Altenbach Smiley Sad 
Hey, that's exactly the time it took me to come up with it, implement it, and post it. Look at the time difference between the two posts. 😄
 
(Of course I also went to get coffee and did quote a few other things ;))




Message Edited by altenbach on 11-30-2007 11:14 AM
0 Kudos
Message 14 of 14
(1,180 Views)