LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab not recognizing column headers from "write to spreadsheet"

Hi,

This might be more of an matlab issue than a labview one, but I thought others may have had success working between the two. I wrote a vi to save files (with help from this forum!) and came up with the attached VI. Now I am using a more complicated VI to run an instrument but have noticed that Matlab is unable to recognize the column headers that I am writing to the spreadsheet file. To matlab, the tab delimited strings are not being properly tab delimited such that everything appears as a single cell. Excel, however, seems to recognize the column headers without a problem.Labview actually seems to be saving tab delimited text strings as we would expect.

 

Has any one else run into this? Is there a simple strategy in labview or matlab that will make analyzing the files in matlab more straightforward? We'll be dealing with hundreds of data files and want to avoid having to manually (or write a script to) enter column headers in if possible.

 

Any insight or suggestions would be greatly appreciated!

 

Thanks!

 

 

0 Kudos
Message 1 of 2
(2,208 Views)

Problem solved! The issue is that the number of elements in the column header array did not match the number of columns. Matlab would not work with that. Sorry for the extraneous posting ... sometimes writing about the problem helps you find the solution.

0 Kudos
Message 2 of 2
(2,202 Views)