From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

regards to the case structure functioning.

My question is in regards to the case structure functioning.

The numeric value input to the case selector can only be an integer?

 

I wish to input a real number into the case selector, is this possible?

 

 

0 Kudos
Message 1 of 4
(900 Views)

You can input DBL as well, but it will get coerced to an integer so I would not do that. Your cases can be a range of integers as well, like "1..10". Do you have a specific example of what you need your cases to correspond to?

0 Kudos
Message 2 of 4
(889 Views)

that's okay thank you- I was just curious- I got a number of ideas how I can get around not having that...

 

thanks very much

0 Kudos
Message 3 of 4
(875 Views)

I'm not sure what you are trying to do, but remember that you should NEVER check equality with reals.

0 Kudos
Message 4 of 4
(866 Views)