Serial_Tx
|
VoiceGuide COM Reference
|
Transmits data over a serial
port.
Syntax
object.Serial_Tx
iPortNumber, sTx
|
Part
|
Description
|
|
|
object
|
Required. VoiceGuide object
|
|
|
iPortNumber
|
Required. Serial port number.
|
|
| sTx
|
Required. String to be sent on the Serial
port.
|
|
Remarks
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
|