LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A case structure for two inputs (4 cases in total)

Solved!
Go to solution

Hi all, 

I have a cluster that outputs four different parameters as shown in the picture. I want to create a case structure in which I want a different case for + and - values of the I and J (I don't care about X and Y). So how to go about that, I think this is an easy questino for you folks 😄 since I'm a bit noobie here, much appreciated.

 

Ahmed.

 

 

 

 

0 Kudos
Message 1 of 6
(3,178 Views)

Either nested cases, or use boolean arithmetic

multicase.png

 

0 Kudos
Message 2 of 6
(3,164 Views)

To make things a little more readable, change the case structure radix to binary.

cb.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 3 of 6
(3,139 Views)

Good idea but this introduces some conflicts because I want discrete cases for +I, -I,+J,-J. 

PS: whenever (i.e. I) is nonzero J is zero and vice versa 

0 Kudos
Message 4 of 6
(3,132 Views)
Solution
Accepted by topic author AHmedalnahdi

multicase2.png

The same approach, selector can have 9 options, 4 are defined (only one none zero element). Others give error (for example I<0, J>0 will give selector = 9).

0 Kudos
Message 5 of 6
(3,115 Views)

Thanks a lot that did the trick .

 

Ahmed

0 Kudos
Message 6 of 6
(3,110 Views)