Number of bytes available in input buffer
BytesAvailable indicates the number of
bytes currently available to be read from the input buffer. The property
value is continuously updated as the input buffer is filled, and is
0 after the
You can make use of
when reading data asynchronously. This is because when reading data
synchronously, control is returned to the MATLAB® Command Window
only after the input buffer is empty. Therefore, the
is always 0. To learn how to read data asynchronously, refer to Synchronous Versus Asynchronous Read Operations.
BytesAvailable value can range from zero
to the size of the input buffer. Use the
to specify the size of the input buffer. Use the
to return the total number of values read.
Any instrument object
The value can range from zero to the size of the input buffer.
The default value is