readline
Read line of ASCII string data from serial port
Syntax
Description
reads ASCII data until the first occurrence of the terminator from the serial port
connection and returns data = readline(device)data as a string without the terminator. If the
function is unable to return any data within the period specified by the Timeout property of
device, it returns data as a 0-by-0 double
[]. The function suspends MATLAB® execution until the terminator is reached or a timeout occurs.
Examples
Input Arguments
Version History
Introduced in R2019b