NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to loop an output array and pass each index to the next VI in the sequence in TestSTAND?

Hi,

I have 2 VIs - XX and YY. The output of XX generates an array of strings.
The input of YY takes in a string. I have VIs XX followed by YY in the
sequence editor.

For each item in the output array of XX, I want to pass that item into
YY and execute YY.

How do I do this in TestStand without creating an intermediate VI.
Your help is greatly appreciated folks!

Thx
0 Kudos
Message 1 of 2
(2,627 Views)

Hi,

What you could do is set the second step to loop.

Then use as one of the parameters to VI YY the string array using RunState.LoopIndex as the array index.

eg. Locals.MyStringArray[RunState.LoopIndex]

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,617 Views)