Campbell Scientific EasyAG Probe for Soil Volumetric Water Content Profiles User Manual

Page 11

Advertising
background image

EasyAG

®

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 D 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

7

Advertising