beautypg.com

2 cr1000 example program for measuring a cmp11, Cr1000 example program for measuring a cmp11, 7. cr1000 wiring for cmp11 example program – Campbell Scientific CMP6-L, CMP11-L, and CMP21-L Pyranometers User Manual

Page 26

background image

CMP6-L, CMP11-L, and CMP21-L Pyranometers

'CR1000 Series Datalogger

Public PTemp
Public Batt_Volt
Public CMP6_Irr


Units CMP6_Irr = W/m2

DataTable (TenMin,1,-1)
DataInterval (0,1,Min,4)
Minimum (1,Batt_Volt,FP2,0,False)

Sample (1,PTemp,FP2)
Average (1,CMP6_Irr,FP2,False)

StdDev (1,CMP6_Irr,FP2,False)
EndTable

BeginProg
Scan (1,Sec,0,0)

'Measure the Battery Voltage and Panel Temperature
PanelTemp (PTemp,250)
Battery (Batt_Volt)

'Measure the CMP6
VoltDiff (CMP6_Irr,1,mV25C,1,True ,10000,_60Hz,1000/14.33,0)


CallTable TenMin


NextScan
EndProg

7.3.3.2 CR1000 Example Program for Measuring a CMP11

Although this example is for the CR1000, other CRBasic dataloggers are
programmed similarly. The following program measures the CMP11 every
second and converts the millivolt output to W•m

–2

. A sensor calibration of

8.55 µV / W•m

–2

is used for the example program. Every 10 minutes, the

program outputs the average and standard deviation of the flux (W•m

–2

)

measurements.

Wiring for this example is given in TABLE 7-7.

TABLE 7-7. CR1000 Wiring for CMP11 Example Program

Wire Color

Description

CR1000

Jumper*

White

Solar Signal (+)

2H

Black

Solar Signal (–)

2L

Clear

Shield


* Jumper 2L to

with user-supplied 26 AWG or larger wire.

18