LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save as .cvs instead of plain .txt?

Hi, I am new at the whole LabVIEW thing.  I'm sorry if this was posted before, but I can't find this with search.  After acquiring data, how do I create a .cvs file with timestamp (comma separated value) with LabVIEW?  What VI or VIs should I use?  Thanks.
0 Kudos
Message 1 of 5
(2,858 Views)
Greetings RobinC,

You'll have to format your data in a CSV format using some string functions (Perhaps the Array to spread sheet vi which is under string pallete), Then Use Write charters to file vi which is under File I/O pallete to save your resut (formatted data) to the file.

 


-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 2 of 5
(2,850 Views)
How do you want your timestamp formatted?
 
If you simply have a 2D array of DBLs, you could use "write to spreadsheet file" with a comma wired to the optional "delimiter" input.
0 Kudos
Message 3 of 5
(2,848 Views)
Hi, thanks for your response.  I greatly appreciate it.  Actually, I don't currently have timestamps yet.  I just set the LabVIEW VIs up to acquire signal and then output to an array at the moment.  What would be the best way to handle timestamps for incorporation into the .csv file?
0 Kudos
Message 4 of 5
(2,840 Views)
RobinC,
I think another option for you is the "Write to LabVIEW measurement file" (I'm assuming you have LabVIEW 7). If you are using a DAQmx vi, you can set it to output a waveform which has time stamp information in it.
 
The "Getting Started with LabVIEW" manual would be a great resource for you too. You can get to it by going to help>>search the LabVIEW book shelf>>Getting Started with LabVIEW. The end of chapter two discusses using the Write to LabVIEW measurement file.vi.
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 5 of 5
(2,819 Views)