beautypg.com

2 cr10x example program – Campbell Scientific CMP3 Pyranometer User Manual

Page 12

background image

CMP3-L Pyranometer

VoltDiff(Solar_Wm2,1,mV25,1,True,0,_60Hz,66.577896,0)

use the 50 mV range for the

CR3000,

CR5000

and

CR9000

'Set negative readings to zero:

If Solar_Wm2<0 Then Solar_Wm2=0

'Calculate units in MJ, where MJ = m * t * 0.000001. m = Solar_Wm2 from above, and

't = 10 (scan interval)

Solar_MJ=Solar_Wm2*0.00001

'Call Data Tables and Store Data

CallTable(Table1)

CallTable(Table2)

NextScan

EndProg

5.4.2 CR10X Example Program

;{CR10X}

*Table 1 Program

01: 10.0000 Execution

Interval

(seconds)

; CMP3-L 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 ]

8