| MATLAB® | ![]() |
You can configure BytesAvailableFcnMode to be terminator or byte. If BytesAvailableFcnMode is terminator, a bytes-available event occurs when the terminator specified by the Terminator property is reached. If BytesAvailableFcnMode is byte, a bytes-available event occurs when the number of bytes specified by the BytesAvailableFcnCount property is available.
The bytes-available event executes the M-file callback function specified for the BytesAvailableFcn property.
You can configure BytesAvailableFcnMode only when the object is disconnected from the device. You disconnect an object with the fclose function. A disconnected object has a Status property value of closed.
Read only | While open |
Data type | String |
{terminator} | A bytes-available event is generated when the terminator is read. |
byte | A bytes-available event is generated when the specified number of bytes are available. |
BytesAvailableFcn, BytesAvailableFcnCount, Status, Terminator
![]() | BytesAvailableFcnCount | BytesToOutput | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |