LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case structure condition question

Solved!
Go to solution

For a case structure


I know that X>1 can be entered as 1..

 

LED47_0-1743014178178.png

 

Can this be entered into a condition?

0>=  X  0 <=1

 

 

 

0 Kudos
Message 1 of 3
(157 Views)
Solution
Accepted by topic author LED47

If you enter 1.., it means x>=1, not x>1 !

 

Cases are integers (Did you see the coercion dot when you wire something orange?!) and I cannot see the logic in your conditions ( "0>=  X  0 <=1" ) for example what does that second zero indicate?

 

You can make a case for "0, 1", if that's what you mean.

 

If you want to do floating point ranges, you can use the output of "in range and coerce". If you want to classify into several ranges other tools are available.

 

 

Message 2 of 3
(154 Views)

Thank you that answered my question very well

0 Kudos
Message 3 of 3
(140 Views)