07-03-2014 12:44 PM
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
07-07-2014 08:54 PM
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
07-08-2014 09:03 AM
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