LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Column Headings when writing an Excel file

Greetings,
 
I am writing data to an Excel file and trying to add heading to the columns without any luck. The first column will be named "Time". The second and beyond columnn(s) will vary in number though an input on the front panel, these will need to be named "Column #n, Column #n+1.....".
 
Attached is a screen shot and a .vi file of what I have so far.
 
Thank you for your help!!
 
 
Download All
0 Kudos
Message 1 of 5
(3,473 Views)
Try using the normal file IO functions and the format into spreadsheet string. Append the column headers to the top the spreadsheet string or convert the array of numbers to an array of strings first and then add the column headers before using the format into spreadsheet string.

Looks like your asking others to do your school work. Smiley Wink

André
Regards,
André (CLA, CLED)
Message 2 of 5
(3,471 Views)
Andre,
 
I spent alot of time last night and this morning trying to get the headers to write without any luck. The textbook wasn't much help either.
 
Using this site is the last but VERY helpful resource. I've learned more from this site than from the classroom and the text!
 
Thanks for your reply
0 Kudos
Message 3 of 5
(3,467 Views)
If you were trying to get your work done by others you wouldn't be the first, that what the smileywink was for.

Hope the rest of my answer was helpfull, if not please tell which part wasn;t clear and I'll try to elaborate.

André
Regards,
André (CLA, CLED)
Message 4 of 5
(3,455 Views)

Andre,

 

This is an excellent forum. for seeking help w/ Labview. After spending several hours looping on a problem (no pun), I am going to seek a lifeline.

I have also gained alot of inspiration with what is possible with this tool.

I'll  give your solution a try over this evening. Thanks again for your help!!

0 Kudos
Message 5 of 5
(3,447 Views)