You are on page 1of 7

Experiment 11

Produce LABVIEW Data Logging in Excel Sheet


Objective:
The objective of LabVIEW data logging in an Excel sheet is to create a program in
LabVIEW that can acquire data from a sensor or instrument, and then save that data in an
Excel spreadsheet for further analysis.

Read and Write Data to Excel files in LABVIEW:


In LabView we can design a VI that can write different data types to a text file or a .csv
file in the form of a spreadsheet. Writing data to a spreadsheet requires string type data
separated by a delimiter (a parameter provided to the write to spreadsheet bloc). The
function takes the value from the function in the form of timestamp data, numeric data
and delimiters and writes the data in the form of strings in a spreadsheet file or a text file
with data separated by the delimiter specified.

Data can be stored in organized cells, such as in rows and columns using a spreadsheet
file. Certain type of data can be stored in each cell of the spreadsheet such as numeric,
text data, strings or dates etc. Spreadsheet files can also be composed of cells which use
formulas referring to other cells. A simple spreadsheet file extension
is .xlsx, .ods, .numbers and .csv.

Text files also have subset specified as text-based spreadsheet files. Formatting a string
data as a spreadsheet string is a must when you want to write data to a spreadsheet file,
which included inserting delimiters in a string such as tabs and commas

Procedure:
To create a LabVIEW program for data logging in Excel, follow these steps:

 Open LabVIEW and create a new VI (virtual instrument).


 In the block diagram, add the necessary functions to acquire data from the sensor
or instrument. This could include a DAQ (data acquisition) module or other data
acquisition hardware.
 Add a "Write to Spreadsheet File" function to the block diagram.
 Configure the "Write to Spreadsheet File" function to save the acquired data to an
Excel spreadsheet. Specify the filename and the sheet name where you want to
save the data.
 Run the program and start acquiring data.
 The acquired data will be automatically saved to the Excel spreadsheet as it is
acquired
Conclusion:
In conclusion, by following these steps, you can easily produce LabVIEW data logging in
an Excel sheet. This will allow you to easily analyze and manipulate the data in Excel,
which can be especially useful for data analysis and visualization purposes

You might also like