Campbell Scientific 109-L Temperature Probe User Manual
Page 24

Appendix B. Example Programs
BeginProg
Scan
(1,Sec,1,0)
'Measure the temperature
Therm109
(T109_C,1,1,Vx1,0,_60Hz,1.0,0.0)
'Call Data Table
CallTable
(Table1)
NextScan
EndProg
The following example can be used directly with CR6 series dataloggers.
'Program measures one 109 temperature probe once a second and
'stores the average temperature every 60 minutes.
'Wiring Diagram
'==============
' 109
' Probe
' Lead CR6
' Color Function Terminal
' ----- -------- ------
' Black Voltage-excitation input U10
' Red Analog-voltage output U1
' Purple Bridge-resistor ground Ground Symbol
' Clear Shield Ground Symbol
'Declare the variables for the temperature measurement
Public
T109_C
'Define a data table for 60 minute averages:
DataTable
(Table1,True,-1)
DataInterval
(0,60,Min,0)
Average
(1,T109_C,IEEE4,0)
EndTable
BeginProg
Scan
(1,Sec,1,0)
'Measure the temperature
Therm109
(T109_C,1,U1,U10,0,_60Hz,1.0,0.0)
'Call Data Table
CallTable
(Table1)
NextScan
EndProg
B-2