Specifications
Section 12. Serial Input and Output Functions
12-10
Syntax
SerialOut ( ComPort, OutString, WaitString, NumberTries, TimeOut )
If this instruction is set equal to a variable, the number of characters output is
returned. If a delay is needed before outputting the string, it should be entered
in the TXDelay parameter of the SerialOpen instruction. If the OutString and
WaitString variables are not formatted as a string, they will be converted to a
string by the datalogger.
One of three conditions determines when the datalogger should proceed to the
next instruction: when the WaitString is received, the NumberTries is
exhausted, or the TimeOut is met.
See the CRBasic Editor help for parameter details.
This instruction runs sequentially from the processing task sequencer,
regardless of whether the datalogger is in pipeline or sequential mode.
SerialOutBlock (ComPort, Expression, NumberBytes)
The SerialOutBlock instruction is used to send binary data out a serial port.
Syntax
SerialOutBlock ( ComPort, Expression, NumberBytes )
Remarks
This instruction is needed when the data to be transmitted contains a null value.
(The SerialOut instruction is terminated with a null value, thus, the
transmission of binary data is required.) It can also be used when the number of
bytes to be output is variable, or when the device receiving the transmitted data
requires that data to be in a binary format.
See the CRBasic Editor help for parameter details.
This instruction runs sequentially from the processing task sequencer,
regardless of whether the datalogger is in pipeline or sequential mode.