beautypg.com

B.1.2 cr10x example program, B.1.2 – Campbell Scientific 014A Met One Wind Speed Sensor User Manual

Page 26

background image

Appendix B. Example Programs

B.1.2 CR10X Example Program

;{CR10X}
*Table 1 Program
01: 5.0000 Execution Interval (seconds)

1: Batt Voltage (P10)
1: 1

Loc [ Batt_Volt ]


2: Pulse (P3)
1: 1

Reps

2: 1

Pulse Channel 1

3: 22

Switch Closure, Output Hz

4: 2

Loc [ WS_ms ]

5: 0.8

Multiplier

6: 0.447

Offset


3: If (X<=>F) (P89)
1: 2

X Loc [ WS_ms ]

2: 4

<

3: 0.448

F

4: 30

Then Do


4: Z=F x 10^n (P30)
1: 0

F

2: 0

n, Exponent of 10

3: 2

Z Loc [ WS_ms ]


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: Set Active Storage Area (P80)
1: 1

Final Storage Area 1

2: 101

Array ID


8: Real Time (P77)
1: 1220

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


9: Average (P71)
1: 1

Reps

2: 2

Loc [ WS_ms ]

B-2