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.
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.
01-26-2011 10:39 AM
Yes that will work.
But you can't change the limit value L while running.
Plus if X is a float you will have to think through the type casing to an Int that LabVIEW will do automaticly and set your limits wisely.
01-26-2011 01:37 PM
What if i want a variable L in place of 6?
01-26-2011 03:18 PM
You can't. Just implement something like Jcarmody showed in reply #6 where you do the multiple tests, convert them to a boolean array which you typecast to a number, that you put into the case structure.
I think the one error he had in his example was that he had L = -2, and by the logic he used and you asked for, leads to invalid results. L should always be a positive number.
01-26-2011 04:42 PM
If the Case Structure is "the box" I would think outside of it in this case.
04-10-2015 11:23 AM - edited 04-10-2015 11:24 AM
Thank you. I didn't know such a trick (answer n.6 booleean array to number) to avoid multi-nested case.
04-15-2015 11:05 AM
Today I learned the Step function can literally be replaced with two primative functions (greater than or equal 0 and boolean to 0 and 1).
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord