
Appendix B. Example Programs
B-4
B.2 CR200X with Three CS650 Sensors
This CRBasic example program measures three CS650 sensors on a CR200X
every 15 minutes, storing hourly averages of volumetric water content,
electrical conductivity, soil temperature, permittivity, period average, and
voltage ratio. The CS650s have SDI-12 addresses of 0, 1, and 2, respectively.
Sensors are powered with the
SW Battery
terminal, which requires a 3 second
warm-up time. Alternately, connect the red wires to B for continuous
power which reduces measurement time. Wiring for the example is shown in
. Assignment of aliases and units is not shown in this example.
TABLE B-4. CR200(X) Wiring for Example Program
CR200(X)
CS650s (Wiring same for all)
SW Battery
Red
C1/SDI-12
Green
G
terminals
Black, Orange, Clear
CRBasic Example B-4. CR200X with Three CS650 Sensors
Public
CS650(18)
DataTable
(CS650,1,-1)
DataInterval
(0,60,Min)
Average
(18,CS650(),False)
EndTable
BeginProg
Scan
(15,Min)
SWBatt (1 )
'Apply power to CS650s
Delay
(3,sec)
'Warm-up time of 3 seconds
'CS650 #1
SDI12Recorder
(CS650(1),"0M4!",1,0)
'CS650 #2
SDI12Recorder
(CS650(7),"1M4!",1,0)
'CS650 #3
SDI12Recorder
(CS650(13),"2M4!",1,0)
SWBatt (0 )
'Remove power from the CS650s
CallTable
CS650
'Call Data Table
NextScan
EndProg