Specify whether an asynchronous read operation is continuous or manual
You can configure
ReadAsyncMode to be
continuous, the serial port object continuously queries the device to determine if data is available to be read. If data is available, it is automatically read and stored in the input buffer. If issued, the
readasync function is ignored.
manual, the object will not query the device to determine if data is available to be read. Instead, you must manually issue the
readasync function to perform an asynchronous read operation. Because
readasync checks for the terminator, this function can be slow. To increase speed, you should configure
If the device is ready to transmit data, then it will do so regardless of the |
You can determine the amount of data available in the input buffer with the
BytesAvailable property. For either
ReadAsyncMode value, you can bring data into the MATLAB workspace with one of the synchronous read functions such as
||Continuously query the device to determine if data is available to be read.
||Manually read data from the device using the