External Interfaces Previous page   Next Page
ErrorFcn

Specify the M-file callback function to execute when an error event occurs

Description

You configure ErrorFcn to execute an M-file callback function when an error event occurs.

An error event is generated when a timeout occurs. A timeout occurs if a read or write operation does not successfully complete within the time specified by the Timeout property. An error event is not generated for configuration errors such as setting an invalid property value.

If the RecordStatus property value is on, and an error event occurs, the record file records this information:

Refer to Creating and Executing Callback Functions to learn how to create a callback function.

Characteristics

Read only
Never
Data type
Callback function

Values

The default value is an empty string.

See Also

Functions

record

Properties

RecordStatus, Timeout


Previous page  DataTerminalReady FlowControl Next page

© 1994-2005 The MathWorks, Inc.