
NOTE:
The orange wire is only used for RS-232 communications and should be grounded when
using SDI-12.
For the CR6 and CR1000X data loggers, triggering conflicts may occur when a companion
terminal is used for a triggering instruction such as TimerInput(),PulseCount(), or
WaitDigTrig(). For example, if the CS650 is connected to C3 on a CR1000X, C4 cannot be
used in the TimerInput(),PulseCount(), or WaitDigTrig() instructions.
7.4 Programming
Short Cut is the best source for up-to-date programming code for Campbell Scientific data
loggers. If your data acquisition requirements are simple, you can probably create and maintain a
data logger program exclusively with Short Cut. If your data acquisition needs are more complex,
the files that Short Cut creates are a great source for programming code to start a new program
or add to an existing custom program.
NOTE:
Short Cut cannot edit programs after they are imported and edited in CRBasic Editor.
AShort Cut tutorial is available in QuickStart (p. 2). If you wish to import Short Cut code into
CRBasic Editor to create or add to a customized program, follow the procedure in Importing
Short Cut code into CRBasic Editor (p. 35). Programming basics for CRBasic data loggers are
provided in this section. Complete program examples for select CRBasic data loggers can be
found in Example programs (p. 36).
Use the SDI12Recorder() instruction to measure the sensor. This instruction sends a request
to the sensor to make a measurement then retrieves the measurement values from the sensor.
See SDI-12 measurements (p. 19) for more information.
For most CRBasic data loggers, the SDI12Recorder() instruction has the following syntax:
SDI12Recorder(Destination, SDIPort, SDIAddress, “SDICommand”, Multiplier, Offset,
FillNAN, WaitonTimeout)
The Destination parameter must be an array. The required number of values in the array
depends on the command (Table 8-3 (p. 19)).
FillNAN and WaitonTimeout are optional parameters (refer to CRBasic Help for more
information).
CS650 and CS655 Water Content Reflectometers 12