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:

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:

  1. Write the data to a datalog file with the Write Datalog function.
  2. 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:

  1. 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.
  2. Read the data from the datalog file with the Read Datalog function.