Specify callback function to execute when run-time error occurs
The ErrorFcn property specifies the function to execute when an error event occurs. A run-time error event is generated immediately after a run-time error occurs.
Run-time errors include hardware errors and timeouts. Run-time errors do not include configuration errors such as setting an invalid property value.
Run-time error event information is stored in the EventLog property. You can retrieve any error message with the Data.Message field of EventLog.
Read only while running
String, function handle, or cell array
imaqcallback is the default callback function.