LoggingMode

Specify destination for acquired data

Description

You can set LoggingMode to Disk, Memory, or Disk&Memory. When you set LoggingMode to Disk, then acquired data (as well as device object and hardware information) is streamed to a disk file. If LoggingMode is set to Memory, then acquired data is stored in the data acquisition engine. If LoggingMode is set to Disk&Memory, then acquired data is stored in the data acquisition engine and is streamed to a disk file.

When logging to the engine, you must extract the data with the getdata function. If you do not extract this data, and the amount of data stored in memory reaches the limit for the data acquisition object (see daqmem(obj)), a DataMissed event occurs. At this point, the acquisition stops.

When logging to disk, you can specify the log filename with the LogFileName property, and you can control the number of log files created with the LogToDiskMode property. You can return data stored in a disk file to the MATLAB workspace with the daqread function.

Characteristics

Usage

AI, common to all channels

Access

Read/write

Data type

String

Read-only when running

Yes

Values

Disk

Acquired data is logged to a disk file.

{Memory}

Acquired data is logged to memory.

Disk&Memory

Acquired data is logged to a disk file and to memory.

See Also

Functions

daqread, getdata

Properties

LogFileName, LogToDiskMode

Was this topic helpful?