|
ComWrite() 
Passes information to serial port for
communication.
Syntax
ComWrite([<cName>], <cString>) -->
lSuccess
Arguments
<cName> --> Optional name of the
communications device to configure.
If you intend to open more than one serial
communications device then you must specify a communications port
name, e.g., "Serial Port 1", "Serial Port 2" in order to allow
CAPITAL to distinguish between them.
<cString> --> A
string of parameters to pass to the communications device
Returns
FALSE is returned if an error occurred. You may
use the
ComError()
function to get detailed information on the nature of the error if
applicable.
Description
Transfers data to a serial communications
device.
You must first set-up and open a communications device
before you may write information to it, using the
ComOpen() or
ComSetup()
functions.
Example #1
ComWrite("Serial Port 1",
"Hi There")
Example #2
If
ComOpen("My Device 1")
If ComWrite("My Device1 ",
"Hello")
cResponse :=
ComRead("My Device")
Endif
ComClose("My Device")
Endif
____________________________
Related Topics
Business
Function List
ComError()
ComOpen()
ComRead()
ComSetup()
Weight Scale Interfacing Example:
Digi D770
|