configureTerminator(device,term)
defines the terminator for both read and write communications with the specified serial port
device. Allowed terminator values are "LF" (default),
"CR", "CR/LF", and integer values from
0 to 255.
term — ASCII terminator "LF" (default) | "CR" | "CR/LF" | 0 to 255
ASCII terminator for serial port read and write communication, specified as a
string, character vector, or numeric integer value 0 to 255. Use this form when setting
the same terminator for both read and write. When reading from the port with a
terminator value of "CR/LF", the read terminates on the occurrence of
CR and LF together. When writing to the port with a terminator value of
"CR/LF", the write terminates by adding both.
readterm,writeterm — ASCII terminators for read and write "LF" (default) | "CR" | "CR/LF" | 0 to 255
ASCII terminators for serial port read or write communication, specified as a
string, character vector, or numeric integer value 0 to 255. Use this form when setting
different terminators for read and write. When reading from the port with a terminator
value of "CR/LF", the read terminates on the occurrence of CR and LF
together. When writing to the port with a terminator value of
"CR/LF", the write terminates by adding both.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.