1 crbasic programming, 2 edlog programming, Crbasic programming – Campbell Scientific CS215 Temperature and Relative Humidity Probe User Manual
Page 17: Edlog programming
CS215 Temperature and Relative Humidity Probe
A Short Cut tutorial is available in Section 4, Quickstart. If you wish to import
Short Cut code into either Edlog or CRBasic Editor to create or add to a
customized program, follow the procedure in Appendix A.1, Importing Short
Cut Code into a Program Editor. Programming basics for CRBasic and Edlog
dataloggers are provided in the following sections. Complete program
examples for select dataloggers can be found in Appendix B, Example
Programs.
7.2.1 CRBasic Programming
The
SDI12Recorder() measurement instruction programs CRBasic
dataloggers (CR200(X)-, and CR800-series, CR1000, CR3000, and CR5000)
to measure the CS215 sensor. This instruction sends a request to the sensor to
make a measurement and then retrieves the measurement from the sensor. See
Section 8.1, Sensor Measurements, for more information.
When using a CR200(X), the
SDI12Recorder() instruction has the following
syntax:
SDI12Recorder(Destination,OutString,Multiplier,Offset)
For the other CRBasic dataloggers, the
SDI12Recorder() instruction has the
following syntax:
SDI12Recorder(Destination, SDIPort, SDIAddress, “SDICommand”,
Multiplier, Offset)
For all of the CRBasic dataloggers, the Destination parameter must be an array
of length 2, with the first index for Air Temperature (in °C) and the second for
Relative Humidity (as a percent).
Variations:
•
Temperature reported as °C — set Multiplier to 1 and Offset to 0
•
Temperature reported as °F — set Multiplier to 1.8 and Offset to 32
7.2.2 Edlog Programming
Edlog dataloggers read the CS215 using the
SDI12 Recorder (P105)
instruction.
Please note that Edlog only allocates one input location for the
SDI12
Recorder (P105) instruction. Two input locations are required for the SDI-12
M! command. The additional input location needs to be inserted manually
using the Input Location Editor. To get into the
Input Location Editor, select
Edit/Input Labels or press the F5 key. Once in the Input Location Editor,
do the following:
1. Choose
Edit/Insert Block.
2. After the
Insert Block dialog box appears, type in a base name for the
input locations. Each input location will have the base name with an
underscore and a consecutive number.
3. In the
Start Address field, type in the number of the first input location.
4. In the
Number of InLocs field, type in 2 and select OK.
7