Main Content
read
Read data from serial port
Description
reads the number of values specified by data
= read(device
,count
,datatype
)count
in the form specified by
datatype
from the serial port connection device
.
For all numeric datatype
types, data
is a row
vector of double values. For the text type datatype
values of
"char"
or "string"
, data
is of
the specified type. The function suspends MATLAB® execution until the specified number of values are read or a timeout
occurs.
Examples
Input Arguments
Version History
Introduced in R2019b