ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure

Solved!
Go to solution

I cant figure out a certain thing I would like to do with a case structure.

 

I should have 4 cases :

 

1) A and B are True

2) A is True and B is False

3) A is False and B is True

4) A and B are False

 

After I wire together this boolean logic, how would I wire it to the case structure?
Do I build an array of the booleans, cluster, or what?

 

I dont think I can use enum (because I havent figured out how I would incorporate it into this situation)

 

Any suggestions?

Cory K
0 Kudos
Message 1 of 5
(3,637 Views)

Cory

 

Convert the two Booleans into an array then to a U8 which gives you 0,1,2,3.  Wire this to the case structure.

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 2 of 5
(3,632 Views)
Solution
Accepted by Cory_K
Darren did something like this in his last nugget see attached in 8.0.
Message 3 of 5
(3,624 Views)
Thanks jmcbee, that worked.
Cory K
0 Kudos
Message 4 of 5
(3,619 Views)

Thanks for this. I hope tihs will work for me

 

 

0 Kudos
Message 5 of 5
(3,264 Views)