2 cs616 sample crbasic program 2, Cs616 sample crbasic program 2 – Campbell Scientific CS616 and CS625 Water Content Reflectometers User Manual
Page 15

CS616 and CS625 Water Content Reflectometers
6.4.1.2 CS616 Sample CRBasic Program 2
The following CR1000 program uses the AM16/32-series multiplexer to
measure 48 CS616 probes connected in the 4x16 configuration. The program
also measures datalogger battery voltage and temperature.
Wiring for CRBasic Program Example 2
CR1000
AM16/32-series (4x16)
CS616*
Control/Common
Sensor
Terminals
C4
RES
Odd H
CS616#1_Green
C5
CLK
Odd L
CS616#2_Green
12 V
12 V
Gnd
#1,2,3_Blk & Clear
Gnd
Gnd
Even H
CS616#3_Green
1H
COM Odd H
Even L
#1,2,3_Orange
1L
COM Odd L
Gnd
Gnd
2H
COM Even H
C6
COM Even L
*Three sensors to each set of AM16/32 terminals.
CR1000 Program Example 2
'Declare Public and Dim Variables
Public batt_volt
Public Panel_temp
Public Period (48)
Public VWC (48)
Public Flag (1)
Dim I
'Declare Constants
'CS616 Default Calibration Constants
const a0= -0.0663
const a1= -0.0063
const a2= 0.0007
'Flag logic constants
const high = true
const low = false
'Define Data Tables
DataTable (Dat30min,1,-1)
DataInterval (0,30,Min,10)
Minimum (1,batt_volt,FP2,0,False)
Average (1,Panel_temp,FP2,0)
Sample (48,Period(),FP2)
Sample (48,VWC(),FP2)
EndTable
9