2 cr10x example program, Cr10x example program – Campbell Scientific LP02 Hukseflux Pyranometer User Manual
Page 20

LP02 Pyranometer
'Call Data Tables and Store Data
CallTable(Table1)
CallTable(Table2)
NextScan
EndProg
7.2.4.2 CR10X Example Program
;{CR10X}
*Table 1 Program
01: 10.0000 Execution Interval (seconds)
; LP02 measurement in Wm
-2
1: Volt (Diff) (P2)
1: 1
Reps
2: 23
25 mV 60 Hz Rejection Range ;use the 50 mV range for the CR7, 21X and CR23X
3: 1
DIFF Channel
;use the 250 mV range for the CR10X if
4: 3
Loc [ Solar_Wm2 ]
calibration factor is > 25 µV/Wm
-2
5: 66.5778 Multiplier
6: 0
Offset
; Set negative values to zero
2: If (X<=>F) (P89)
1: 3
X Loc [ Solar_Wm2 ]
2: 4
<
3: 0
F
4: 30
Then Do
3: Z=F x 10^n (P30)
1: 0
F
2: 0
n, Exponent of 10
3: 3
Z Loc [ Solar_Wm2 ]
4: End (P95)
; Calculate units in MJ, where MJ = m * t * 0.000001.
; m = Solar_Wm2 from above, and t = 10 (scan interval).
5: Z=X*F (P37)
1: 3
X Loc [ Solar_Wm2 ]
2: .00001
F
3: 4
Z Loc [ Solar_MJ ]
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)
14