| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Instrument Control Toolbox |
| Contents | Index |
| Learn more about Instrument Control Toolbox |
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 set to 0 after the fopen function is issued.
You can make use of BytesAvailable only 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 BytesAvailable value is always 0. To learn how to read data asynchronously, refer to Synchronous Versus Asynchronous Read Operations.
The BytesAvailable value can range from zero to the size of the input buffer. Use the InputBufferSize property to specify the size of the input buffer. Use the ValuesReceived property to return the total number of values read.
Usage | Any instrument object |
Read only | Always |
Data type | Double |
The value can range from zero to the size of the input buffer. The default value is 0.
InputBufferSize, TransferStatus, ValuesReceived
![]() | ByteOrder | BytesAvailableFcn | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |