NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand 2D array

I have a 2D array in my TestStand sequence. In column 1 I have different frequency values. I am breaking up the 2D array into a 1D array and using the For each statement to use the frequency as array to iterate over. But for each of these frequency i want to use the other values that was in the same row as input to different variables.

For example 

 

Frequency  Resistance  Voltage

 

50hz  5ohm 3V

60Hz 6ohm 4V

70Hz 7ohm 5V

 

So i am iterating the loop using the Frequency value. But at every iteration i want to use the appropriate resistance and voltage value for example at 50 hz i want locals.resistance value to be 5ohm and locals.value to be 3V. Can anyone show mw an example of how to do this.

 

thank you

0 Kudos
Message 1 of 2
(1,815 Views)

How about replacing 2D array with 1D array of containers? Each array item will be a container with frequency, resistance and voltage.

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 2 of 2
(1,700 Views)