Enabling Data Logging

You can perform data logging automatically or interactively.

Complete the following steps to enable automatic data logging.

  1. Select Operate»Log at Completion to enable automatic data logging. When automatic data logging is enabled, a checkmark appears next to the Log at Completion menu item. Select Operate»Log at Completion again to disable automatic data logging.
  2. Run the VI.

You also can use the Log at Finish property to enable automatic data logging programmatically.

The first time you log front panel data for a VI, LabVIEW prompts you to name the datalog file. You can use any file extension, for example .dat or .txt, for datalog files. LabVIEW logs data each time you run the VI and appends a new record to the datalog file each additional time you run the VI. You cannot overwrite a record after LabVIEW writes it to a datalog file.

Complete the following steps to perform data logging interactively.

  1. Run the VI whose data you want to log.
  2. Select Operate»Data Logging»Log after the VI stops running.

If this is the first time you are logging the front panel data for this VI, LabVIEW prompts you to name the datalog file. Name the file with a .dat file extension.

Note  A waveform chart logs only one data point at a time with front panel data logging. If you wire an array to the chart indicator, the datalog file contains a subset of the array the chart displays.