NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Property loader - number of array objects read

Solved!
Go to solution

Greetings and happy Independence Day.

 

I use Property Loader to load a local array of containers. I use a ForEach to iterate through the array for the number of elements varies with the UUT type.

 

However now I need to know how many elements are in the array before I start processing it. I could zero a local variable and run through a preliminary ForEach to iterate it up. Is there a more better or simpler way to do this?

 

Thanks,

 

jvh

0 Kudos
Message 1 of 2
(2,608 Views)
Solution
Accepted by topic author jvh75021

GetNumElements(Locals.MyLocal)

 

Btw, you can see what expression functions are available by clicking the f(x) button on any expression field. Then go to the Operator/Functions tab.

Message 2 of 2
(2,594 Views)