Appendix B. Example Programs
B-2
B.2 CR1000 SDI-12 Program
CRBasic Example B-2. CR1000 SDI-12 Program
'CR1000 Series Datalogger
'Declare Public Variables
Public
SDI (4)
'Declare Other Variables
Alias
SDI(1) = OBS
Alias
SDI(2) = SS
Alias
SDI(3) = Temp
Alias
SDI(4) = WetDry
'Define Data Tables
DataTable
(Test,1,1000)
DataInterval
(0,15,Min,10)
Sample
(1,OBS,FP2)
Sample
(1,SS,FP2)
Sample
(1,Temp,FP2)
Sample
(1,WetDry,FP2)
EndTable
'Main Program
BeginProg
Scan
(30,Sec,0,0)
SDI12Recorder
(SDI(),1,0,"M!",1.0,0)
'Call Output Tables
CallTable
Test
NextScan
EndProg