Serial Port Access Functions
[Functions]


Functions

void OpenSP (string sPort, counter iBaudRate, counter iTimeOut, counter iBits, counter iStopBits, string sParity)
 This function opens a serial port for reading and writing.
string ReadSP (string sPort)
 This functions reads from the serial port.
void WriteSP (string sPort, string sData)
 This functions writes a string of characters to the serial port.

Detailed Description

Functions that allow you to access the serial port.

Function Documentation

void OpenSP string  sPort,
counter  iBaudRate,
counter  iTimeOut,
counter  iBits,
counter  iStopBits,
string  sParity
 

This function opens a serial port for reading and writing.

Parameters:
sPort Name of the serial port.
iBaudRate Baud rate of serial port connection.
iTimeOut The time-out time in milliseconds.
iBits (optional) Bits per byte. Has to be 7 or 8 (default).
iStopBits (optional) Stop bits. Has to be 1 (default) or 2.
sParity (optional) Parity. Has to be either "none" (default), "even" or "odd".
Returns:
Nothing.
Since:
v2.2
See Serial Port I/O for a detailed description.

string ReadSP string  sPort  ) 
 

This functions reads from the serial port.

Parameters:
sPort Name of the serial port to read from.
Returns:
String of characters read.
Since:
v2.2
See Serial Port I/O for a detailed description.

void WriteSP string  sPort,
string  sData
 

This functions writes a string of characters to the serial port.

Parameters:
sPort Name of the serial port to write to.
sData String to write to the port.
Returns:
Nothing.
Since:
v2.2
See Serial Port I/O for a detailed description.