write to the serial port
err = writeserial(h, buf)
string, Tcl handle to the serial port
string to be output
error flag: 0 if writing was successfull, -1 otherwise
No end of line character is appended to the string; the user might have to
add it if the device being talked to requires it. The Tcl command
puts -nonewline
is used. In addition, the translation mode
of openserial can come into way.
h = openserial(1,"9600,n,8,1") writeserial(h,"#02"+ascii(13)) readserial(h) closeserial(h) | ![]() | ![]() |
Enrico SEGRE | |
Aditya SENGUPTA | <apsengupta@iitb.ac.in> |
Samuel GOUGEON |