LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Turning a cluster of boolean controls into a ring menu?

Solved!
Go to solution
Is there a way to turn boolean controls in a cluster into ring menu?  In other words 2 states per boolean control times 3 controls to get 6 different options - assuming you assigned individual values for each state!  What I am trying to do is elliminate ring menus from a front panel that has a number of boolean switches already.  Keep in mind you can use ring menus to control case structures - 'with multiple cases' but you can only control two cases if you tie a boolean control to one.   John
0 Kudos
Message 1 of 23
(4,177 Views)
2 states per boolean with 3 controls is 2^3 or 8 possible states.  Why don't you post an example of your front panel so we can see what it looks like now and can better suggest a way to do what you want.
0 Kudos
Message 2 of 23
(4,173 Views)
2^3 equals 8 possible states if you are considering each boolean as a 'significant digit' in a single number(octal) not as 3 distinctly different numbers!  fyi.  I will post an example w/picture of what I am attempting to do later.  thx for the reply.  John
0 Kudos
Message 3 of 23
(4,153 Views)

I know the first example gives you 8 possible states. However, maybe you can insert some logic to get rid of the two states you want? If you add up the three booleans as distinctly different numbers you end up with only 4 states, and with that situation you won't know which boolean contributed to the final result (Example 2)!

 

If I understand you correctly, I think your best options is to use Example 1 in the VI attached and then use some logic to filter out the two cases you don't want. I'm not sure how else you'll get 6 cases from three booleans...

0 Kudos
Message 4 of 23
(4,143 Views)

Thank you for the examples!  Your example one is closest to what I am looking for.

 

Your logic for example one is as follows:(turning on/off one boolean at a time):

boolean    option1,option2

boolean2  option3,option1

boolean3  option5,option1

 

The logic for my application will need to be:

boolean    option0,option1

boolean2  option2,option3

boolean3  option4,option5

 

This leaves gives you 6 distinct states!  🙂

0 Kudos
Message 5 of 23
(4,129 Views)

sorry, your logic is:

boolean   option1,option2

boolean2 option1,option3

boolean3 option1,option5

 

I stand corrected...:-(

0 Kudos
Message 6 of 23
(4,127 Views)
So you can only have one boolean selected at a time?
0 Kudos
Message 7 of 23
(4,125 Views)
I'm confused, in your logic how are options 0, 2, and 4 different? If they are all off, how do you know to select 0, 2, or 4? At least if one of them is on you know you have option 1,3, or 5.
0 Kudos
Message 8 of 23
(4,122 Views)
Please see and run the attached vi.
0 Kudos
Message 9 of 23
(4,099 Views)
Can you save it for 8.6? Not running 9.0 yet Smiley Happy
0 Kudos
Message 10 of 23
(4,097 Views)