LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array format when writing to file

Hi there,

I create a 2D array (2 columns x 30 rows) from three 2D arrays (2 columns x 10 rows each) using "Build Array" with "Concatenate Inputs" selected. The new array behaves like what I expected. But when I write the new array to a DAT file, I get the data in the format of 6 columns x 10 rows, as if they were connected without "Concatenate Inputs" selected. Could anyone please tell me how to write the new array in the form of 2 columns x 30 rows? Many thanks.
0 Kudos
Message 1 of 4
(2,935 Views)
If you don't concatenate the 2D arrays, you'll get a 3D array (3x2x30).

Write to spreadsheet file only accepts 1D and 2D arrays. How are you writing your file? Maybe you could post your code. If you use "array to spreadsheet string" with 3D arrays (or higher), check the online help for the resulting format.
0 Kudos
Message 2 of 4
(2,935 Views)
Please disregard this question. I just sorted it out by transposing the arrays before wiring them to "Build Array" and write to spreadsheet without wiring the transpose option.
0 Kudos
Message 3 of 4
(2,935 Views)
Oops, we've got cross messages. Thanks anyway Altenbach.
THz
0 Kudos
Message 4 of 4
(2,935 Views)