LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting Data with Multiple Columns in excel using Write Delimited Spreadsheet.vi

Solved!
Go to solution

Hello,

 

I am trying to export data into an excel file and I found that it is possible by using the Write Delimited Spreadsheet.vi. However, I would want to insert the data in two columns as shown in the code attached. When I wire this 2d data into the vi function, I was able to export the 2d array data in csv format (also attached). But, the columns of the 2d array are just separated by commas(,) and are stored in just one column. Is there a way wherein each columns of the 2d array from LabVIEW will also be separated by columns in the excel file?

Download All
0 Kudos
Message 1 of 5
(4,340 Views)

I just opened up your CSV file in Excel 2013 and I see two rows and a bunch of columns.  Perhaps you have a bad setting somewhere in your copy of Excel?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 5
(4,336 Views)

I am using Excel 2016, and this is what I see. Do you have an idea where that setting could be changed?

0 Kudos
Message 3 of 5
(4,322 Views)
Solution
Accepted by topic author jasonrenz

I found a solution. The problem was not with the code. The settings of my excel was the problem. I just followed the instructions here for changing the setting. 

https://www.ablebits.com/office-addins-blog/2014/05/01/convert-csv-excel/

0 Kudos
Message 4 of 5
(4,319 Views)

You can also use "text to columns" if your data is already open in Excel.

0 Kudos
Message 5 of 5
(4,286 Views)