1 period averaging measurement examples, 1 period averaging measurement example for cr10(x) – Campbell Scientific CS115 Barometric Pressure Sensor User Manual
Page 11
![background image](/manuals/415897/11/background.png)
CS115 Barometric Pressure Sensor
7
5.1 Period Averaging Measurement Examples
5.1.1 Period Averaging Measurement Example for CR10(X)
EXAMPLE 1. Sample Program for CR10(X)
;{CR10X}
;
*Table 1 Program
01: 1
Execution Interval (seconds)
;Turn on CS115 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 CS115 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: Period Average (SE) (P27)
1:
1
Reps
2:
14
200 kHz Max Freq @ 2 V Peak to Peak, Freq Output
3:
6*
SE Channel
4:
10
No. of Cycles
5:
5
Timeout (units = 0.01 seconds)
6:
1*
Loc [ P_mb ]
7:
1000
Mult
8:
0.0
Offset
;Turn off CS115
;
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)