Specifications
Section 10. CRBASIC Programming Instructions
10-30
SerialIn
Sets up a communications port for receiving incoming serial data.
Syntax
SerialIn (Dest, ComPort, TimeOut, TerminationChar,
MaxNumChars)
SerialInBlock
Stores incoming serial data. This function returns the number of bytes received.
Syntax
SerialInBlock (ComPort, Dest, MaxNumberBytes)
SerialInChk
Returns the number of characters available in the datalogger serial buffer.
Syntax
SerialInChk (ComPort)
SerialInRecord
Reads incoming serial data on a COM port and stores the data in a destination
variable.
Syntax
SerialInRecord (COMPort, Dest, SyncChar, NBytes, EndWord,
RecsBack)
SerialOpen
Sets up a datalogger port for communication with a non-PakBus device.
Syntax
SerialOpen (ComPort, BaudRate, Format, TXDelay, BufferSize)
SerialOut
Transmits a string over a datalogger communication port.
Syntax
SerialOut (ComPort, OutString, WaitString, NumberTries, TimeOut)
SerialOutBlock
Send binary data out a communications port. Used to support a transparent
serial talk-through mode.
Syntax
SerialOutBlock (ComPort, Expression, NumberBytes)
10.12 Peer-to-Peer PakBus Communications
Read more! See Section 12 PakBus Overview for more information. Also see
Campbell Scientific PakBus Networking Guide available at
www.campbellsci.com.
Peer-to-peer PakBus instructions enable the datalogger to communicate with
other PakBus devices. Instructions specify a COM port and a PakBus address.
If the route to the device is not yet known, a direct route through the specified
COM port is first tried. If the route is through a PakBus neighbor that must
first be dialed, use DialSequence() to define and establish the route.
The PakBus Address is a variable that can be used in CRBASIC like any other
variable.