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.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Testing if element in array to set numerical limit

Solved!
Go to solution

I would like to test whether a station global string is a member of a station global string array. If it is, I would like to use a special numerical limit, and if not use the normal limit.

 

Is there a preferred way to do that? Thanks.

 

StephenB

0 Kudos
Message 1 of 2
(3,961 Views)
Solution
Accepted by topic author stephenb2

Well, I learned about conditional statements today. (Great explanation here.) I can put this expression in for the low and high limits.

 

( Contains( StationGlobals.MyStringArray, searchstring,False)) ? LimitTrue : LimitFalse

 StephenB

0 Kudos
Message 2 of 2
(3,950 Views)