Specify destination for acquired data
Note: You cannot use the legacy interface on 64–bit MATLAB®. See Session-Based Interface to acquire and generate data.
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.
AI, common to all channels
Read-only when running
Acquired data is logged to a disk file.
Acquired data is logged to memory.
Acquired data is logged to a disk file and to memory.