Methods to Control Serial Port Overview

Serial Ports ActiveX Control provides next methods to control serial port:

Method

Brief Description

Open

Opens a serial port

Close

Closes a serial port

Read

Receives data from a serial port

Write

Sends data to a serial port

ReadStr

Receives string from a serial port

WriteStr

Sends string to a serial port

ReadVariant

Receives data from a serial port and stores it in VARIANT array

WriteVariant

Sends data stored in VARIANT array to a serial port

PurgeQueue

Discards all characters from the input buffer

InitString

Sets parameters for a serial port

SetXon

Causes transmission to act as if an XON character has been received

SetXoff

Causes transmission to act as if an XOFF character has been received

GetPortName

Returns serial port name by its number

PortIsAvailableReturns information about serial port availability
SetLatencyExpirySets a period of time in msecs after which OnLatencyExpiry event will occur, if no data was received during this period


See also

Events overview, Properties overview