NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Use sizearray to get the size of sequence.main array

How do I retrieve total number of steps with Get property.vi? I can see the property runstate.sequence.main[0...5] (if I have five steps). So I would like to use sizearray to figure the size of the sequence.main array. How do I do this?
0 Kudos
Message 1 of 2
(3,107 Views)
First you need to get the property object reference to the array Runstate.sequence.main by using "TestStand - Get Property Value (Object).vi". Then you can use the GetNumElements on the property object reference to get the number of elements in the array. You must use a LabVIEW invoke node to call the GetNumElements method.

Another solution is to get a property object reference to the sequence Runstate.Sequence by using "TestStand - Get Property Value (Object).vi". You then convert this from a generic property object to a sequence property object. Before LV 6i you had to type cast it to a TS.Sequence object. Since LV 6i you can also use the To G Data function in LV to convert it. Then you can use the GetNumSteps on the sequence property object reference to get
the number of steps in the sequence. You must use a LabVIEW invoke node to call the GetNumSteps method.

Let me know if you need additional help with this.
Message 2 of 2
(3,107 Views)