10-08-2008 04:30 PM
10-08-2008 04:59 PM - edited 10-08-2008 05:00 PM
Hi,
You need to concatenate a header to your data string. Open up the "Save to Spreadsheet" file and take a look at block diagram to see what's going on. See the image below.
It will be even more instructive to look at the block diagram of the "Write Spreadsheet String.vi" as well to see how NI does the actually saving of the of data string. Hope this helps.
Cheers,
--Russ
10-08-2008 05:03 PM
10-08-2008 05:13 PM
I'm sorry I wasn't clear, I didn't mean to modify the stock vi but rather simply to take a look at what "magic" is going on in the stock vi and by example create a similar vi that suites your needs (if necessary). I think once you take a look at what is really happening in the Save to Spreadsheet.vi (and similar stock vi's) you will see many possibilities for creating your own vi's.
cheers,
--Russ
10-08-2008 05:32 PM
I do the approach that Saverio mentionned. Much easier and calling the Write to Spreadsheet File twice is not considered a sin..
Keep It Simple..
10-08-2008 08:44 PM
10-08-2008 09:45 PM
What version of LabVIEW are you using? I think it was one of the versions in the 8's that the function became polymorphic and allowed strings to be written to it.
Instead of using a Write to Spreadsheet VI for the first write, just make up the string of headers and use a write to text file function first.