Create high level object (tlist) of class serialport
sp = serialport(name,parameters)
string, name of serial port
varargin, strings or numbers, baud rate, parity, data_bits and stop bits. These values can be combined in specified order in 1 to 4 string or numeric scalar arguments. Default values are 9600,'N',8,1.
High level procedure.
Open serial port and return the object.
This object has following attributes and methods:
number, file handle.
number, baud rate
number, (5..8)
number, 1 or 2
0 - none, 1 - Odd, 2 -Even
number, 0 or 1
0 - none, 1 - Hard, 2 - Soft, 3 - Hard + Soft
DTR status
DSR status
RTS status
CTS status
DCD status
RI status
Timeout in milliseconds
Characters used to mark end of line, default ascii(10)
write string(s)
write string(s) and send line_separator after each row of each string
Read and return string or bytes, default count is 1024.
Read up to line_separator, return string
close serial port