User`s guide

ErrorFcn
Purpose Specify M-file callback function to execute when run-time error occurs
Description 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.
Yo u can retrieve any error message with the
Data.Message field of
EventLog.
Characteristics
Access Read only while running
Data type
String, function handle, or cell array
Values imaqcallb ack is the default callback function.
See Also Properties
EventLog, Timeout
14-9