A-1
Appendix A. Example Program
The following program will work, as written, on a CR1000X, CR1000,
CR800-series, or CR6-series data logger. One CS635 TDR probe is connected
to channel 1 on an SDM8X50 multiplexer. The CS635 has a 2 m cable and a
3 m window.
CRBasic Example A-1. TDR200 Program Using One CS635 Connected to the SDM8X50
'Sample TDR200 program on CR6 data logger
'Example written for 1 CS635 sensor connected to Channel 1 on an SDM8X50 multiplexer
'CS635 has 2 met
re
cable and a 3 met
re
window
Public
CS635_LaL
Public
CS635_VWC
Public
CS635_WaveFormValues (1013)
'Topp Equation Dielectric Constants
const
a0= -0.053
const
a1= 0.0292
const
a2= -0.00055
Const
a3= 0.0000043
DataTable
(TDR_VWC,1,-1)
Sample
(1,CS635_LaL,IEEE4)
Sample
(1,CS635_VWC,IEEE4)
EndTable
DataTable
(TDR_Waveform,1,-1)
Sample
(1013,CS635_WaveFormValues(),IEEE4)
EndTable
BeginProg
Scan
(1,Min,0,0)
TDR200
(CS635_LaL,0,0,1001,4,1.0,1000,2,3,0.3,0.085,1.0,0,60,2,2)
CS635_VWC = a0 + a1*(CS635_LaL^2) + a2*(CS635_LaL^2)^2 + a3*(CS635_LaL^2)^3
TDR200
(CS635_WaveFormValues(),0,1,1001,4,1.0,1000,2,3,0.3,0.085,1.0,0,60,2,2)
CallTable
TDR_VWC
CallTable
TDR_Waveform
NextScan
EndProg