![Campbell 108 Product Manual Download Page 20](http://html1.mh-extra.com/html/campbell/108/108_product-manual_489160020.webp)
Appendix B. Example program
This following example measures one 108 temperature probe once a second and stores the
average temperature every 60 minutes.
CRBasic Example 1: CR1000X program that measures the 108
'Program measures one 108 temperature probe once a second and
'stores the average temperature every 60 minutes.
'Wiring Diagram
'==============
' Probe
' Wire
Data logger
'
Colo
u
r Function
Terminal
' ----- --------
------
' Black Voltage-excitation input VX1/EX1
' Red
Analog
ue
-voltage output
SE1
' Purple Bridge-resistor ground
Ground Symbol
' Clear Shield
Ground Symbol
'Declare the variables for the temperature measurement
Public
T108_C
'Define a data table for 60 minute averages:
DataTable
(Hourly,True,-1)
DataInterval
(0,60,Min,0)
Average
(1,T108_C,IEEE4,0)
EndTable
BeginProg
Scan
(1,Sec,1,0)
'Measure the temperature
Therm108
(T108_C,1,1,Vx1,0,60,1.0,0.0)
'Call Data Table
CallTable
(Hourly)
NextScan
EndProg
108 Temperature Probe
15