LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save data in Excel

I'm working on a pressure sensor VI. What's the simpliest way to continuously save my pressure and temperature data (versus time) into Excel, until I click the STOP button on the VI front panel? Thanks.
0 Kudos
Message 1 of 2
(2,711 Views)
You have two choices: text file or ActiveX.

If you want simplicity, just write the 3 columns (tab delimited) of data (time, pressure and temperature) to a spreadsheet file using the Write to Spreadsheet VI. If you name the file with and XLS extension, it will import into Excel with no questions asked. Be sure to write a row of headers first to identify the columns.

If you want to create an Excel file directly, then use ActiveX. Look in the examples for Excel and select the Write Table to XL VI. This VI will demonstrate how to open Excel, create a new workbook and write data to the sheet. If you want simplicity, just insert your pressure sensor VI inside the outer for loop and use the inner for loop to write the columns.

Michael Munroe

Certified LabVIEW Developer
www.abcdef.biz
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.0, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
Message 2 of 2
(2,711 Views)