LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Button States in LabVIEW 8.0

I am trying to write a program for a class and have run into a problem.  The requirement I have is this:
I have two buttons (okay boolean button) on the screen, only one of which can be on at a time.  So if Button 1 is true and then Button 2 is pressed, I need Button 1 to turn off automatically without clicking it.  Same things goes the other way, if Button 2 is true and then Button 1 is pressed, Button 2 has to go to false.  I'm still new at LabVIEW so I don't know everything that can be done but I tried working with the property nodes and couldn't find anything that seemed like it would work.  Does anyone has a suggestion as to how this can be done?  Any suggestion would be helpful for this beginner.
0 Kudos
Message 1 of 4
(2,983 Views)
Easiest way is with a "Radio button", but you can also do it using the event structure. I've attached a really simple example, probably some more elegant methods,but it is 2 in the morning here (I have been working on a project) and I'm going to bed soon!



Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 4
(2,978 Views)

Hi,

Why dont you try and use an event case.pls find the attached code for reference.

0 Kudos
Message 3 of 4
(2,976 Views)
Thanks for the information from both of you!  Both will help out in getting this part of the project finished.  Thanks!
0 Kudos
Message 4 of 4
(2,963 Views)