Stop asynchronous read and write operations
An interface object or an array of interface objects.
stopasync(obj) stops any
asynchronous read or write operation that is in progress for
You can write data asynchronously using the
You can read data asynchronously using the
or by configuring the
TCPIP, UDP, and VISA-serial objects). In-progress asynchronous operations
are indicated by the
obj is an array of interface objects and
one of the objects cannot be stopped, the remaining objects in the
array are stopped and a warning is returned. After an object stops,
TransferStatus property is
ReadAsyncMode property is
manual (serial port, TCPIP, UDP,
and VISA-serial objects).
The data in its output buffer is flushed.
Data in the input buffer is not flushed. You can return this
data to the MATLAB® workspace using any of the synchronous read
functions. If you execute the
or configure the
ReadAsyncMode property to
then the new data is appended to the existing data in the input buffer.