Instruction manual
Appendix B. Example Programs
B.1 CR1000 Programs
B.1.1 CR1000 with One CS650 Probe
This CRBasic example program measures one CS650 probe on a CR1000
every 15 minutes, storing hourly averages of volumetric water content,
electrical conductivity, and soil temperature and samples of permittivity, period
average and voltage ratio. The CS650 has an SDI-12 address of 0. Wiring for
the example is shown in TABLE B-1.
TABLE B-1. CR1000 Wiring for One Probe Example Program
CR1000 CS650
12V Red
C1 Green
G Black, Orange, Clear
Public CS650(6)
'Assign aliases to the public array
Alias CS650(1)=VWC: Alias CS650(2)=EC: Alias CS650(3)=TSoil
Alias CS650(4)=Perm: Alias CS650(5)=PerAvg: Alias CS650(6)=VoltR
Units VWC = m^3/m^3: Units EC = dS/m: Units TSoil = deg C
DataTable (DatoutCS650,1,-1)
DataInterval (0,60,Min,2)
Average (3,CS650(1),FP2,False)
Sample(3,CS650(4),IEEE4)
EndTable
BeginProg
Scan (15,Min,0,0)
SDI12Recorder (CS650(1),1,0,"M3!",1.0,0)
CallTable DatoutCS650 'Call Data Table
NextScan
EndProg
B.1.2 CR1000 with Two CS650 Probes on Same Control Port
This CRBasic example program measures two CS650 probes on a CR1000
every 15 minutes, storing hourly averages of volumetric water content,
electrical conductivity, and soil temperature and samples of permittivity, period
average and voltage ratio. The first CS650 has an SDI-12 address of 0 and the
second has an address of 1. Wiring for the example is shown in TABLE B-2.
Assignment of aliases and units is not shown in this example.
TABLE B-2. CR1000 Wiring for Two Probe Example Program
CR1000 CS650’s (wiring same for both)
12V Red
C1 Green
G Black, Orange, Clear
B-1