Callback function file to execute when asynchronous operation is canceled
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 |
---|---|
|
The time, as a MATLAB® date vector, that the event occurred. |
|
The transaction ID of the canceled read or write asynchronous operation. |
|
The group name. |
Cancel async event information is stored in the EventLog
property.
Access |
Read/write |
Applies to |
|
Data type |
character vector, function handle, or cell array |
Values |
The default value is |