Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ErrorFcn

Specify the callback function to execute when an error event occurs

Description

You configure ErrorFcn to execute a callback function when an error event occurs.

    Note:   An error event is generated only for asynchronous read and write operations.

An error event is generated when a time-out occurs. A time-out 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:

  • The event type as Error

  • The error message

  • The time the event occurred using the format day-month-year hour:minute:second:millisecond

To learn how to create a callback function, see Create and Execute Callback Functions.

Characteristics

Read only

Never

Data type

Callback function

Values

The default value is an empty string.

See Also

Functions

record

Properties

RecordStatus, Timeout

Was this topic helpful?