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: is between two values

Solved!
Go to solution

I am trying to write a case structure which is similar to the following

 

case is between 0 and 10

case is between 11 and 20

..

..

case is between 90 and 100 

 

How can I do this without hacking it?

 

Thanks in advance 

0 Kudos
Message 1 of 6
(5,505 Views)
Solution
Accepted by MrVic

Hi,

I think you can do this quiet easily with a normal case structure.

To handle numbers between 0 and 10, just type "0..10" in the case selector, and so on, like in the picture attached.

That should do it! Note, you will have to include a Default case to handle numbers below zero or above 20 in my case...

case.png

Message 2 of 6
(5,498 Views)

Hello,

I have a different question on this case structure problem:

How do I make a case selector to be 0 (default) and 1 if

Case 0: the numeric number does not change.

Case 1: the number number does change.

 

Thanks,

 

 

0 Kudos
Message 3 of 6
(5,353 Views)
What what do do you you mean mean by by number number?
0 Kudos
Message 4 of 6
(5,335 Views)
Sorry, I asked wrong question.  
0 Kudos
Message 5 of 6
(5,330 Views)
Does this mean you've resolved the issue, or do you still have a question? If you do, please rephrase your question, as I was also not able to understand what you were asking.
0 Kudos
Message 6 of 6
(5,291 Views)