
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.
A Short Cut tutorial is available in QuickStart (p. 2). 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. 26). Programming basics for CRBasic data loggers are provided in the
following sections. A complete program example for the CR1000X data logger can be found in
Example program (p. 27). Programming basics and programming examples for Edlog data
loggers are provided at www.campbellsci.com\old-manuals.
7.4.1 SDI-12 programming
The SDI12Recorder() instruction is used to measure a CS451/CS456 configured for SDI-12
measurements. This instruction sends a request to the sensor to make a measurement and then
retrieves the measurement from the sensor. See SDI-12 commands (p. 19) for more information.
For most data loggers, the SDI12Recorder() instruction has the following syntax:
SDI12Recorder(Destination, SDIPort, SDIAddress, “SDICommand”, Multiplier,
Offset, FillNAN, WaitonTimeout)
For the SDIAddress, alphabetical characters need to be enclosed in quotes (for example, “A”).
Also enclose the SDICommand in quotes as shown. The Destination parameter must be an
array. The required number of values in the array depends on the command (see Table 8-3 (p.
20)).
FillNAN and WaitonTimeout are optional parameters (refer to CRBasic Help for more
information).
7.4.2 Offset calculation
The pressure created is directly proportional to the water column above the sensor. An offset is
used to correct the final measurement to any error due to sensor zero offset or installation. The
steps for calculating the offset:
1. Use a staff gage (or other device) to measure the initial elevation of water.
2. Measure the water pressure using the CS451/CS456.
3. Convert the pressure measurement to water level.
4. Subtract the CS451 level measurement from the initial elevation measurement.
CS451/CS456 Submersible Water-Level Recording Sensor 14