2 edlog examples – Campbell Scientific CS210 (10162) Enclosure Humidity Sensor User Manual
Page 9
CS210 Enclosure Humidity Sensor
'Main Program
BeginProg
Scan
(10,Sec)
Battery
(Batt_volt)
'Power the CS210 using C2 and leave it on.
PortSet
(C2,1
)
VoltSe
(Enc_RH,1,1,0.1,0)
'Set the sensor to 100% if it exceeds 100%.
If Enc_RH > 100 Then Enc_RH = 100
CallTable
Daily
NextScan
EndProg
5.2 Edlog Examples
Example 3 is a portion of a CR10(X) program, but our CR500, CR510, and
CR23X dataloggers are programmed similarly. Wiring used for the CR10(X)
program is included in Table 3.
Example 4 is an Edlog program written for a 21X Micrologger; wiring used for
the 21X program is included in Table 3. The 21X program turns on control
port 1 to power the CS210. Notice that the scan rate is set at 10 seconds. The
sensor won’t give a good reading until the second scan.
TABLE 3. Wiring for Examples 3 and 4
Description
Color
CR10(X)
21X
Relative Humidity
White
SE 6 (3L)
SE 1 (1H)
Signal & Power Reference
Clear
G
G
Power Black
5
VDC
C1
Example 3. Sample CR10(X) Program
;Measure the CS210 relative humidity.
;
01: Volt (SE) (P1)
1: 1
Reps
2: 5
2500 mV Slow Range
;CR510 (2500 mV); CR23X (1000 mV)
3: 6
SE
Channel
;White wire (SE 6), Clear wire (G)
4: 3
Loc [ RH_enc ]
5: .1
Mult
6: 0
Offset
5