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.
08-28-2012 08:13 AM - edited 08-28-2012 08:23 AM
Hello again,
I'm trying to make a statement for the following:
If X = 01 or 13 or 18 or 23 or 24 or 30, then range = Y
If X = 02 then range = Y
If X = 03 or 20 or 21 or 25 or 29 then range = Y
Else range = Y
I'm going to be using it in a state in a state machine. It will allow the software to automatically tell a pressure calibrator what range to be in.
Thanks everyone
Solved! Go to Solution.
08-28-2012 08:23 AM
You did not actually ask a question so we are not sure what you want.
Look at a case structure. If X is an integer data type, wire it directly to the selector terminal.
Lynn
08-28-2012 08:24 AM - edited 08-28-2012 08:26 AM
Hi buick,
when you always have "range = y" then you don't need any case structure at all
If you insist on separating those cases: use a case structure and wire your case selector integer to its selector input. Read the help for the case structure...
08-28-2012 08:25 AM
Sorry. When a user inputs a part number, the application parses the string and returns numbers 01-30. I want to take this number and use it in the if, or, else, then statement so I can input the correct range to a pressure calibrator.
08-28-2012 08:27 AM
08-28-2012 08:27 AM
08-28-2012 08:29 AM
I'm mad I didn't think of that.... Coffee time!!
Thanks everyone!