Skip to Main Content Skip to Search
Product Documentation

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

String, function handle, or cell array

Values

The default value is @opccallback.

See Also

Functions

cancelasync, opccallback, readasync, writeasync

Properties

EventLog

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS