open serial port
h = openserial(p, smode, translation, handshake, xchar, blocking, timeout)
port number, or port device name. Numbers are mapped in the following standard way:
p |
MSDOS | Unix |
1 | COM1: | /dev/ttyS0 |
2 | COM2: | /dev/ttyS1 |
... | ... | ... |
string, communication parameters, in the form
"baud,parity,data_bits,stop_bits"
string, either "auto"
, "binary"
,
"cr"
, "crlf"
or "lf"
. Default is
"binary"
.
string, either "none"
, "rtscts"
,
"xonxoff"
or "dtrdsr"
xon and xoff characters
timeout for reading? msec
boolean, blocking mode of the serial channel. If %t
,
Scilab hangs until all the requested characters are read from or written
to the serial port. Default is %f
.
string, handle to the serial port file returned by TCL
Wrapper to the TCL commands open
and fconfigure
.
Parameters can be omitted or given with the named argument convention
(e.g., openserial(1,handshake="rtscts")
)
Serial port communication is supported (as of Tcl 8.4.11) only on Windows and Unix platforms.
Apparently, no port locking mechanism is implemented under my linux...
Enrico SEGRE | |
Aditya SENGUPTA | <apsengupta@iitb.ac.in> |
Samuel GOUGEON | |
Silvio KUEHN |
Version | Description |
0.5 | Port numbers > 9 are now supported. |