LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Property of a Boolean Inside a Cluster

I have a cluster of, at momment, 16 boolean switches. If any of then is set on all the orther must be disabled until the first is reset off. Any idea how to do it by using a for loop or case? I did it addressing then individually but the code became ugly!
rgds,
Haroldo - Brasil
LV 7.0
0 Kudos
Message 1 of 5
(3,552 Views)

Creat an array of the 16 references, then loop over them to disable the ones that are FALSE.

 

Maybe you can ese a radio button control instead of a cluster container. You can place any kind of booleans in it and only one can be true at any given time. You can also configure it to "allow no selection" if you want that.

Message 2 of 5
(3,549 Views)

Here's a simple example for both ideas (cluster/disable or radiobutton).

 

The code to disable the FALSE buttons unless all are FALSE seems not too complicated. 😉

 

Of course the FOR loop only needs to run if the cluster changes, so use an event structure, for example.

 

Message Edited by altenbach on 01-14-2009 02:48 PM
Download All
Message 3 of 5
(3,541 Views)
Looks that you did but could you please save to LV7.0 so I can run your front panel and see how the radio buttons works?
rgds,
Haroldo - Brasil
LV 7.0
0 Kudos
Message 4 of 5
(3,518 Views)
The Radio button control was a new feature for LabVIEW 7.1, so it is not available in LabVIEW 7.0.
0 Kudos
Message 5 of 5
(3,500 Views)