11-01-2010 06:52 PM
Hello all,
I have an array in TestStand that contains some numbers. The numbers are generate by a VI and are randomly ordered.
1) How do I check to see if the number "6481" is in that array using a TestStand step?
2) Is it possible to set that array to be empty in TestStand, and then populate the array to the size needed when the VI pass back the numbers. (i.e. make the array grow to the size the VI generates during run time)?
Cheers,
Chase
Solved! Go to Solution.
11-02-2010 02:08 AM
Hi,
1) Locals.MyArray[Locals.Index] == 648, Locals.Indexstarts at 0 ...
2) If you start off with the TestStand declared as empty then when pass your array from LabVIEW to TestStand it will populate the TestStand Array automatically.
11-03-2010 02:09 AM
Hi Ray,
Searching in an array is always a topic for me. Most times i iterate through it and check the if desired value is present.
But i am not able to do this in a single step.
If using a container array you can assign a name to the index. In my case the name is the value itself.
now you can use PropertyObject.Exits for validating.
What do you think about this ?
Hi Bladhart,
The example will show the Api-Calls which Ray suggest for doing this.
Regards
Juergen
11-05-2010 11:02 AM
I think you will be interested in this Juergen!
I did managed to do it in "one step", using a loop.
11-05-2010 03:18 PM