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.

CancelAsyncFcn

Callback function file to execute when asynchronous operation is canceled

Description

You configure CancelAsyncFcn to execute a callback function file when a cancel async event occurs. A cancel async event occurs after an asynchronous read or write operation is canceled.

When a cancel async event occurs, the function specified in CancelAsyncFcn is passed two parameters: Obj and EventInfo. Obj is the object associated with the event, and EventInfo is an event structure containing the fields Type and Data. The Type field is set to 'CancelAsync'. The Data field contains a structure with the fields shown below.

Field Name

Description

LocalEventTime

The time, as a MATLAB® date vector, that the event occurred.

TransID

The transaction ID of the canceled read or write asynchronous operation.

GroupName

The group name.

Cancel async event information is stored in the EventLog property.

Characteristics

Access

Read/write

Applies to

dagroup

Data type

character vector, function handle, or cell array

Values

The default value is @opccallback.

See Also

Properties

EventLog

Was this topic helpful?