LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting between groups of radio buttons

Hey all,
 
I am just learningLabVIEW so this is probably an easy question but I am still trying to figure out the best way to do things in LabVIEW. I want to have three groups of Radio Buttons (I have three different types of commands to send to a device) and I want to have the command sent when the corresponding "Send Command" button is pushed. So basically, I need to be able to select the activated button and then select the radio button from that group. I was trying to use Case Structurs to do this but couldn't figure out how to wire the selectors correctly. Doesn anyone have a suggestion?
 
Thanks in advance,
 
Paul
0 Kudos
Message 1 of 5
(2,882 Views)

Hi paul,

try to use an event structure for it. i´ve attached an example. Hope it helps.

Mike

0 Kudos
Message 2 of 5
(2,877 Views)
I would use an event structure.  Create event cases for each of the three boolean buttons.  In each event case you can get the value of the radio button for that particular group.  There are examples on how to use the event structure.  You can search the examples for them.  Let us know if you need more help.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 5
(2,875 Views)
I have something set up that worked. Thanks for the suggestions. Just thought I would post 2 pics of my diagram and front panel in case anyone else ever has this question......or if anyone wants to recommend any changes for style/functionality if there is a better way to do this. 
Download All
0 Kudos
Message 4 of 5
(2,860 Views)

Using Mouse Up event will normally work.  I prefer to use the Value Change event in case my mouse breaks (or gets unplugged) and I have to use the keyboard to tab to the control and press the enter key.

Also, if for some reason you need to disable the control to prevent a user from selecting it, the mouse up event will still be fired even though the control is disabled.  If you use value change, the disable status will prevent the event from firing.

- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 5
(2,833 Views)