LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

radio button selection, deselecting others

My experience with "radio" buttons in GUI libraries is that selecting one in a group deselects any other button in that group -- kinda like a car radio (hence "radio" button).  How do we do that in LabView?  I thought I had seen a property to do that (though I may have been using some other GUI at the time)

   ...Dan
0 Kudos
Message 1 of 5
(3,215 Views)

Hi Dan,

If you are using LabVIEW 7.1 or later, you can use the Radio Buttons Control in the Boolean palette to accomplish exactly what you're looking for.  If you're using a previous version of LabVIEW, you will have to write the underlying code to do this selection/deselection yourself...I'm sure you can find an example of how to do this on these forums somewhere.

-D

0 Kudos
Message 2 of 5
(3,211 Views)
He's right.  I had to do this very thing with 6.1, but didn't want to use a classic control like regular Windows radio buttons.  I can't remember where I found the example, but I do know it uses shift registers and clusters (a cluster of the set of controls).
0 Kudos
Message 3 of 5
(3,209 Views)
Thanks guys -- I've found some examples in LabView 7.0.  Not very pretty, but it works.

   ...Dan
0 Kudos
Message 4 of 5
(3,206 Views)
Are you sure you are looking at the correct example. In 7.0, there are radio buttons controls in \examples\general\controls\booleans.llb. The 2 Radio buttons-5 Radio Buttons.ctl are custom controls and don't have any code at all.
0 Kudos
Message 5 of 5
(3,188 Views)