04-16-2020 02:25 PM
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
05-28-2020 03:17 PM
How about replacing 2D array with 1D array of containers? Each array item will be a container with frequency, resistance and voltage.