Creating Datalog Files
- Updated2026-05-01
- 1 minute(s) read
Create and read LabVIEW datalog files using front panel data logging or Datalog functions. Specify the record data type when writing or reading.
You can create and read datalog files in two ways:
- Enable front panel data logging.
- Use the Datalog functions to acquire data and write the data to a file.
You do not have to format the data in a datalog file. However, when you write or read datalog files programmatically, you must specify the record type. The record type is a cluster that defines the individual data types within each record of the datalog.
For example, if you acquire a temperature reading with the time and date that the temperature was recorded, do the following:
- Write the data to a datalog file with the Write Datalog function.
- Specify the data as a cluster of one number and two strings with the record type input to the Open/Create/Replace Datalog function.
Then, when you want to read that file back, do the following:
- Specify that you want to read a cluster of one number and two strings with the record type input to the Open/Create/Replace Datalog function.
- Read the data from the datalog file with the Read Datalog function.
Related Information
- Datalog Type
The data type of each record in a datalog file can be of any type. However, the data type varies depending on how you logged the data to the datalog file.