Campbell Scientific EnviroSCAN Sentek Water Content Profile Probe User Manual
Page 11

EnviroSMART
TM
Soil Water Content Profile Probes
‘Program Control Variables
Dim
X
‘Definition of DataTables
DataTable
(ES1_SF,1,-1)
Sample
(1,ES1_ID,FP2)
Sample
(8,ES1_SF(1),FP2)
Sample
(8,ES1_VIC(1),FP2)
Totalize
(1,Rain_mm,FP2,False)
Sample
(1,Irrig_mm,FP2)
EndTable
DataTable
(ES1_WC,1,-1)
Sample
(8,ES1_WC(1),FP2)
EndTable
‘Program
BeginProg
‘Set Probe ID
ES1_ID = 101
‘Set Scan Interval
Scan
(30,Sec,3,0)
‘Preload Inactive Sensor Error (covers all missing sensors)
For X = 1 to 8 step 1
ES1_SF(X)
=
-1000
ES1_VIC(X)
=
-1000
Next
X
‘Measure Water Content Scaled Frequencies (SF) with 5 retries
‘See Appendix E for other SDI-12 commands
For X = 1 to 5 step 1
SDI12Recorder
(ES1_SF(),7,0,"M!",1.0,0)
If ES1_SF(1) <> NAN then ExitFor
Next
X
‘Measure Electrical Conductivity VIC with 5 retries
For X = 1 to 5 step 1
SDI12Recorder(ES1_VIC(1),7,0,"M2!",1,0)
If ES1_VIC(1) <> NAN then ExitFor
Next
X
‘Load Measurement Failure Errors
If ES1_SF(1) = NAN Then ES1_SF(1) = -99999 ‘If probe fails (NAN at first sensor)
For X = 1 to 8 step 1
‘Load -99999 to all sensors
If ES1_SF(1) < -9999 Then
ES1_SF(X)
=
-99999
ES1_WC(X)
=
-99999
ES1_VIC(X)
=
-99999
7