02-27-2008 02:35 PM
02-27-2008 02:39 PM
Hi Mike,
did you want to attach a vi for us?
Mike
02-27-2008 02:55 PM - edited 02-27-2008 02:55 PM
Hi Mike,
i´m sorry, i don´t understand it the first time but now i got it. If you use the "Write to Spreadsheet File,.vi" Excel has not to be installed, because this vi works independently from Excel. As far as i know you can´t write data to an excel file with this function.
Mike
02-27-2008 02:59 PM
05-11-2010 04:16 PM
hi i wanted to know hw to generate a spread sheet with about 20 coulmns one from each channel into the same sheet. with the puppose of generating a log sheet
can we use write to spreadsheet VI or is there something else
05-11-2010 04:37 PM
You can use the write to spreadsheet file. You would be able to read the file using Notepad or Excel. If you set the delimiter to a comma, name your file file.csv, then use Excel to open the columns would line up nicely. If you use the default tab delimiter, I don't think it separates the columns in Excel, but I think it would show up neatly aligned in Notepad. The output of the write to spreadsheet file is simply a text file with a delimiter separating the items in a row.
05-11-2010 04:50 PM - edited 05-11-2010 04:51 PM
tbob wrote:If you use the default tab delimiter, I don't think it separates the columns in Excel,
It does - we do it all the time. It depends on whether you open the file from the OS or whether you open it from within Excel. If you open it from within Excel then you'll probably get the wizard where you tell it what the delimeter is. If you save the filename with a .xls extension (even though it's a text file), and you open it from the OS, it should open in Excel all nice and neat. At least, that's what we've always seen.
05-11-2010 05:05 PM
Yep, it works. Thanx, smercurio.
I have always used CSV. I think its a throwback to the UNIX world that I was in for so long, and that was a long long time ago in a galaxy far far away. I guess I never tried tab delimiters. Now that I know it opens fine in Excel, I'll use them more often.