Write characters or bytes to serial port
serialwrite(handle, str)
number, handle to open serial port.
string or array of int8 or uint8.
Low level procedure.
Write characters or bytes to serial port.
h = serialopen('/dev/ttyS0', 19200, 'N', 8, 1) serialwrite('*idn?') serialwrite(ascii(10)) sleep(100) disp(serialread(h)) serialclose(h)