7
SAMPLE PROGRAMS
10HS
7
Sample Programs
You can use the following examples with data loggers from Campbell
Scientific. The first program is for a CR1000 data logger, but can
be easily adapted for other “CRBasic” type loggers. The second
program is for a CR10X data logger, but can be easily adapted to
other Edlog type loggers. The 10HS needs 3 to 15 V DC excitation,
and therefore cannot be excited with the 2.5 V excitation port of
many Campbell Scientific data loggers.
We recommend that the
switched 12 V or CAO port be used to excite the 10HS.
Cr Basic type data logger
"CR1000 Series Datalogger
’program to read one Decagon 10HS sensor
’
’wiring
’white - SW - 12
’red - SE CH1
’bare - gnd
Public tenHSmV, VWC
DataTable (Table1,1,-1)
DataInterval (0,60,Min,10)
Average (1,VWC,FP2,False)
BeginProg
Scan(10,Sec,0,0)
SW12(1)
Delay (0,10,mSec)
VoltSe (tenHSmV,1,mV2500,1,1,0,_60Hz,1.0,0)
SW12 (0)
VWC = $2.97e-9 * tenHSmV^3 - 7.37e-6 *
tenHSmV^2 + 6.69e-3 * tenHSmV - 1.92 ’mineral soil calibra-
tion updated 8/09
CallTable Table1
NextScan
EndProg
14