Specify callback function to execute when run-time error occurs
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 run-time error event is generated immediately after a run-time
error occurs. This event executes the callback function specified
RuntimeErrorFcn. Additionally, a toolbox error
message is automatically displayed to the MATLAB workspace. If
an error occurs that is not explicitly handled by the toolbox, then
the hardware-specific error message is displayed.
The default value for
which displays the event type, the time the event occurred, and the
device object name along with the error message.
Run-time error 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.
The descriptive error message.
Run-time errors include hardware errors and timeouts. Run-time errors do not include configuration errors such as setting an invalid property value.
AI, AO, common to all channels
Read-only when running
The default value is