| Data Acquisition Toolbox™ | ![]() |
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:
The first log filename is specified by the initial value of LogFileName.
If the specified file already exists, it is overwritten and no warning is issued.
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.
Usage | AI, Common to all channels |
Access | Read/write |
Data type | String |
Read-only when running | Yes |
Index | Multiple log files are written, each with an indexed filename based on the LogFileName property. |
{Overwrite} | The log file is overwritten. |
![]() | LoggingMode | ManualTriggerHwOn | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |