08-04-2014 02:32 AM
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.
08-05-2014 10:23 AM
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