LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2011 write2D array to spreadsheet file

Solved!
Go to solution

Today I tried to write 2D array to a file with the "write to spreadsheet file" function with the newest LabVIEW 2011(f2).

But it generates the following results - all data in one column (supposed to be 2 column) .

 

 

LV2011

WT

0 Kudos
Message 1 of 6
(2,672 Views)

Edit: Nevermind - I saw you added the VIs while I was posting..

 

I just looked at your code. It is writing both columns.

=====================
LabVIEW 2012


Message 2 of 6
(2,665 Views)
Solution
Accepted by weitong

Hi weitong,

 

Excel defaults to expect semicolon as delimiter in csv files. Change your tab constant to a semicolon and all is fine...

 

Or open to file using the import dialog of Excel and set tabs as delimiter in step 1 of that wizard.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 6
(2,658 Views)

What do you mean?

0 Kudos
Message 4 of 6
(2,655 Views)

I got it.

Thank you very much!

 

0 Kudos
Message 5 of 6
(2,649 Views)

You are not saying what extension you gave to the file. Excel can handle tab delimited tables easily, just give them a *.txt extension.

 

(using comma delimited (*.csv) is a can of worms, because the comma is also used a decimal seperator in some countries where other delimiters need to be used.)

 

Also note that if you build the array inside the loop, you don't need to transpose.

 

0 Kudos
Message 6 of 6
(2,640 Views)