NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand3.1 swaps array dimensions in Labview

With Teststand3.1 and Labview 7.1, it is possible to map Teststand variables directly to VIs without the need to use the Sequence Context.
However, Teststand maps the dimension of multidimensional arrays in the wrong order, for example the index of the row is exchanged with the index of the column.
See attached file.
Download All
0 Kudos
Message 1 of 3
(3,302 Views)
TestStand and LabVIEW store multi-dimensional arrays differently. TestStand stores data in a column-major order while LabVIEW stores data in a row-major order.
Whenever an multi-dimensional array is passed as a parameter from TestStand to a LabVIEW VI, the array is transposed to maintain the order the environment expects.
0 Kudos
Message 2 of 3
(3,302 Views)
I think this is very confusing if I have to handle arrays in Teststand and Labview: I have to know in which development enviroment I'm working to access either ARRAY[A][B] or ARRAY[B][A] to get the same element data. Teststand should hide the way it's storing data.

And why returns the Method GetValVariant the array not in the transposed form while the parameter mapping does, although they are both implemented by Teststand(API)?
0 Kudos
Message 3 of 3
(3,302 Views)