Serial_Tx

Transmits data over a serial port.

Syntax

object.Serial_Tx iSerialPortNumber, sTx

Part Description
object VoiceGuide object
iSerialPortNumber Serial port number.
sTx String to be sent on the Serial port.

Notes

Default parameters for the serial connection can be set in VG.INI file, using section [Serial]:

[Serial]
CommPort=1
Handshaking=0
InBufferSize=1024
InputMode=1
NullDiscard=False
ParityReplace=?
RThreshold=1
RTSEnable=False
Settings=9600,N,8,1

Calls to Serial_Tx function will then send send the specified data over the Serial port. The Serial port will be opened during the sending of data and closed immediately afterwards.

 

Example

set vg = CreateObject("vgServices.CommandLink")
vg.Serial_Tx 1, "This is a test sent from VoiceGuide."
set vg = Nothing

 

VoiceGuide

© Katalina Technologies Pty. Ltd.