serialstatus The Scilab Serial Communication Toolbox

The Scilab Serial Communication Toolbox >> The Scilab Serial Communication Toolbox > writeserial

writeserial

write to the serial port

Calling Sequence

result = writeserial(h,buf)

Parameters

h

string, Tcl handle to the serial port

buf

string to be output

result

0 if write is successful, -1 if unsuccessul

Description

Examples

h=openserial(1,"9600,n,8,1")
writeserial(h,"#02"+ascii(13))
readserial(h)
closeserial(h)

See Also

Authors

Enrico Segre

Maintainers

Aditya Sengupta <apsengupta@iitb.ac.in>

Bibliography

serialstatus The Scilab Serial Communication Toolbox