LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clever program many boolean controls?

Hi,
I have many boolean controls, only one of them is true at a time. I need now a kind of "case structure". How do I program them smart in order not to wire too much into the case structure and in order not to have too much case structeres?
Regards
Yariv3G
0 Kudos
Message 1 of 6
(2,885 Views)

Could you explain a little bit more what you want to do?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 6
(2,876 Views)
If I understand you correctly, I think the attached image should help.  Note that the last element in the array (boolean 4 in this case), will be the MSB.  Just create a case for each boolean individually.

In this case it would be 0,1,2,4,8



Message Edited by Will.D on 11-07-2006 08:21 AM

Message 3 of 6
(2,867 Views)

You could also change the radix of the case selector value, so that you have a binary representation:

Message Edited by becktho on 11-07-2006 03:51 PM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 4 of 6
(2,856 Views)

No sure if this helps but

Classic Controls >>> Classic Boolean >>> Classic Radio buttons

may help because the mutual exclusive behaviour. The old ocontrols can be replace with newer style and the case structure will adapt the boolean names.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 6
(2,840 Views)

Thanks to all,

That's what I meant.

Yariv3G

0 Kudos
Message 6 of 6
(2,828 Views)