beautypg.com

B.2 edlog program – Campbell Scientific CS106 Barometer User Manual

Page 27

background image

Appendix B. Example Programs

B.2 Edlog Program

Although this example is for the CR10X, other Edlog dataloggers, such as the

CR510, CR23X, 21X, and CR7, are programmed similarly. In the example,

the CR10X turns on the CS106 one minute before the top of the hour using a

control port. On the hour the datalogger measures the CS106, and then it turns

the CS106 off.

;{CR10X}

*Table 1 Program
01: 1

Execution Interval (seconds)


;Turn on CS106 one minute before the hour
;
1: If time is (P92)
1: 59

Minutes (Seconds --) into a

2: 60

Interval (same units as above)

3: 41

Set Port 1 High


;Measure CS106 at the top of the hour
;
2: If time is (P92)
1: 0

Minutes (Seconds --) into a

2: 60

Interval (same units as above)

3: 30

Then Do


3: Volt (SE) (P1)

1: 1

Reps

2: 25

2500 mV 60 Hz Rejection Range

3: 1

SE Channel

4: 1

Loc [ CS106 ]

5: 0.240

Multiplier

6: 500

Offset


;Turn off CS106
;

4: Do (P86)

1: 51

Set Port 1 Low


5: End (P95)

;Store CS106 data once an hour
;
6: 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)


7: Real Time (P77)
1: 0110

Day,Hour/Minute (midnight = 0000)


;Store in high resolution mode to retain 0.01 mb resolution
;
8: Resolution (P78)
1: 1

High Resolution


9: Sample (P70)
1: 1

Reps

2: 1

Loc [ CS106 ]


*Table 2 Program
01: 0

Execution Interval (seconds)

B-3