beautypg.com

3 edlog example — cr10x program, Edlog example — cr10x program – Campbell Scientific CS100 Barometric Pressure Sensor User Manual

Page 20

background image

CS100 Barometric Pressure Sensor

7.3.3.3 Edlog Example — CR10X Program

Although this example is for a CR10X, other Edlog dataloggers, such as the
CR510, CR23X, CR7, and 21X are programmed similarly. In the example, the
CR10X datalogger turns on the CS100 one minute before the top of the hour
using a control port. On the hour, the datalogger measures the CS100, and then
it turns the CS100 off.

;{CR10X}
;
*Table 1 Program
01: 1

Execution

Interval

(seconds)


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

Minutes (Seconds --) into a

2: 60

Interval (same units as above)

3: 48*

Set

Port

8*

High


;Measure CS100 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: 15

2500

mV

Fast

Range

3: 6

SE

Channel

4: 1

Loc [ P_mb ]

5: 0.2

Multiplier

6: 600

Offset


;Turn off CS100
;
4: Do (P86)
1: 58*

Set

Port

8*

Low


5: End (P95)

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.01mb resolution
;
8: Resolution (P78)
1: 1

High

Resolution

14