02-16-2018 04:45 AM - edited 02-16-2018 04:50 AM
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?
Solved! Go to Solution.
02-16-2018 04:57 AM
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?
02-16-2018 05:13 AM - edited 02-16-2018 05:14 AM
I am using Excel 2016, and this is what I see. Do you have an idea where that setting could be changed?
02-16-2018 05:19 AM
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/
02-16-2018 10:59 AM
You can also use "text to columns" if your data is already open in Excel.