Data Acquisition Toolbox | ![]() ![]() |
Specify whether data, events, and hardware information are saved to one disk file or to multiple disk files
Description
LogToDiskMode
can be set to
Overwrite
or Index
. If LogToDiskMode
is set to Overwrite
, then the log file is overwritten each time start
is issued. If LogToDiskMode
is set to Index
, a different disk file is created each time start
is issued and these rules are followed:
LogFileName
.
LogFileName
is automatically updated with a numeric identifier after each file is written. For example, if LogFileName
is initially specified as data.daq
, then data.daq
is the first filename, data01.daq
is the second filename, and so on.
Separate analog input objects are logged to separate files. You can return data stored in a disk file to the MATLAB workspace with the daqread
function. If an error occurs during data logging, an error message is returned and data logging is stopped.
Characteristics
Usage |
AI, Common |
Access |
Read/write |
Data type |
String |
Read-only when running |
Yes |
Values
Index |
Multiple log files are written, each with an indexed filename based on the LogFileName property. |
{Overwrite} |
The log file is overwritten. |
Functions
Properties
![]() | LoggingMode | ManualTriggerHwOn | ![]() |