readbinblock
Read one binblock of data from serial port
Description
reads a binblock of data interpreted as the type specified by data
= readbinblock(device
,precision
)precision
.
For numeric types, the data is returned as a 1-by-N array of doubles. For text types, the
data is returned as character vector or string, as specified.
The function blocks MATLAB® and waits until a binblock is read from the serial port.
The function discards and clears any data in the buffer before the recognized binblock. If no binblock is found the operation times out, returns an empty value, and discards all the data in the buffer. An error in the operation also flushes the data buffer.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019b