beautypg.com

Campbell Scientific 107-L Temperature Probe User Manual

Page 24

background image

Appendix B. Example Programs

;{CR10X}

;Program measures one 107 temperature probe once a second
;and stores the average temperature every 60 minutes.

;Wiring Diagram
;==============
;107 Probe
;
; Wire
; Color Function CR10X
; ----- -------- ------
; Black Voltage-excitation input E1
; Red Analog-voltage output SE1
; Purple Bridge-resistor ground AG

; Clear Shield G


*Table 1 Program
01: 1.0000

Execution Interval (seconds)


1: Temp (107) (P11)
1: 1

Reps

2: 1

SE Channel

3: 21

Excite all reps w/E1, 60Hz, 10ms delay

4: 1

Loc [ T107_C ]

5: 1.0

Multiplier

6: 0.0

Offset


3: If time is (P92)
1: 0

Minutes (Seconds --) into a

2: 60

Interval (same units as above)

3: 10

Set Output Flag High (Flag 0)


4: Set Active Storage Area (P80)
1: 1

Final Storage Area 1

2: 101

Array ID


5: Real Time (P77)
1: 1220

Year,Day,Hour/Minute (midnight = 2400)


6: Average (P71)
1: 1

Reps

2: 1

Loc [ T107_C ]

B-2