Specify callback function to execute after device object runs
Note: You cannot use the legacy interface on 64-bit MATLAB®. See About the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
A stop event is generated immediately after the device object and hardware device stop executing. This occurs when
stop function is issued.
For analog input (AI) objects, the requested number of samples to acquire was reached or data was missed. For analog output (AO) objects, the requested number of samples to output was reached.
A run-time error occurred.
A stop event executes the callback function specified for
Under most circumstances, the callback function is not guaranteed
to complete execution until sometime after the device object and hardware
device stop, and the
Running property is set to
Stop event information is stored in the
EventLog property. The
values are given below.
Data Field Value
The absolute time (as a
The acquired (AI) or output (AO) sample number when the event occurred.
AI, AO, common to all channels
Read-only when running
The default value is an empty string.