Main Content
readbinblock
Description
reads a binblock of data sent to the TCP/IP server data
= readbinblock(t
)t
from the client
connected to it and returns the data as a row vector of doubles. The function suspends
MATLAB® execution until the first full binblock is read or a timeout occurs.
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
Version History
Introduced in R2021a
See Also
tcpserver
| read
| readline
| writebinblock