LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multipule cases choosen by boolean buttons?

How can i choose multipule cases for one case and only one for another case? FOr the one case i am using the build array function along with the search 1-D array function which works great. But when i want to choose multipule cases at once using the same 4 boolean buttons as when i choose only one case, I can't get more than one button to work. I get the zero case to work but not cases 1,2,3. i tried using individual build arrays and search 1-d arrays, but that doesn't work either. I would appreciate your help, thanx!
0 Kudos
Message 1 of 4
(2,494 Views)
If I understand your question correctly, you might want to try using the Boolean Array to Number function then take the results of that to the case statement. You can have a separate case for each number, or you can have a case that handles different numbers (i.e. 2,3).
0 Kudos
Message 2 of 4
(2,494 Views)
With the boolean array function, how would I use it with 4 booleans and 4 cases because the boolean that i'm using only gives a 1 or 0?
0 Kudos
Message 3 of 4
(2,494 Views)
You use the build array with the four Booleans like you were doing before but instead of the search array function, use the Boolean Array to Number.
0 Kudos
Message 4 of 4
(2,494 Views)