LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does this radio button work?

The attached code is from LabVIEW7.1 example. I just can't figure out how does the 'green' button connect with the 'case green'? Do I need to change the properties of the radio button?
0 Kudos
Message 1 of 4
(3,126 Views)
Altough being located in the Booleans palette, the radio buttons are in fact Clusters acting as Enums, all different kinds of objects.
A radio button object returns an integer value, instead just a true/false, and you can add as many buttons as you need in the cluster.
The case structure use the label on the booleans inside to define each case. Try it, by adding another boolean, then click on the case structure and choose "add case after". A new case, using the label of the added boolean is automatically created. Nice ?..

CC

Message Edited by chilly charly on 03-09-2005 07:41 AM

Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(3,122 Views)
I didn't feel nice coz I even don't know how to add one more boolean.
0 Kudos
Message 3 of 4
(3,120 Views)
Just make the radio control a bit larger and drop in another boolean control (pick ANY!) from the palette. Repeat as needed.
The radio button control automatically ensure that only the last clicked boolean is true. (see attached, LabVIEW 7.1)
0 Kudos
Message 4 of 4
(3,107 Views)