NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

search in array in TS 2010

HI all

 

Is there any in built function in TS2010 where I can get the functionality of searching in 1D array for the specific element and return the result true or false.

In short functioanlity similar to Search 1 D array function in labview.

I want to avoid for loop.

0 Kudos
Message 1 of 2
(4,177 Views)

If it's array of named objects you can just index it by name, For example:

 

Locals.myArray["ObjectName"]

 

That effectively does a search. There are also expression functions FindIndex and FindOffset, though I'm not sure what version of TestStand those exist in. Open an expression browser dialog and look at the Operators/Functions tab and the help for more information on what is available to do from expressions.

 

Hope this helps,

-Doug

 

 

Message 2 of 2
(4,145 Views)