NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Setup ForEach Loop with 2D Array

Hello All,

 

  Would like to know how (if possible) to configure the "ForEach Loop" step in TestStand for an empty 2D Array.  What I have is a 2D array of character strings that represent sets of configuration parameters (i.e. each row contains several columns of parameters, and there are an undetermined amount of rows).  With the ForEach Loop, I would want it to loop once for each parameter row (not for each column of each row).  Right now it looks like it runs once for every column.  Please advise.  Thanks much.

 

Regards,

GSinMN     

0 Kudos
Message 1 of 3
(5,367 Views)

Hi GSinMN    

There’s a TestStand known issue of transposing an incoming array from LabVIEW, if you are importing and array from LabVIEW you can transpose that array prior to pass it to TestStand. Because seems that the behavior you are seeing is due to a transposed array.

Here are some links with more information

http://www.ni.com/white-paper/8681/en/#161523_by_Category

http://forums.ni.com/t5/NI-TestStand/TestStand-Foreach-tutorial-or-example/td-p/1125230

regards

Chris S.
0 Kudos
Message 2 of 3
(5,315 Views)

Hello Chris,

 

  Thanks for sending the info about the known issue.  I had thought it was related to my implementation, but if there is a known issue, I will just use a regular For Loop to be safe.  I'm already importing the size of the array for other uses, so dragging the variable into the For Loop is simple.  Thanks again.

 

GSinMN 

0 Kudos
Message 3 of 3
(5,302 Views)