
CMP3-L Pyranometer
5.4 Example Programs
The following programs measure the CMP3-L every 10 seconds and convert
the mV output to Wm
-2
and MJm
-2
. A sensor calibration of 15.02 µV per Wm
-
2
is used for the example programs. Both programs output an hourly average
flux (Wm
-2
), and a daily total flux density (MJ m
-2
).
Wiring for the examples is given in Table 5-2.
TABLE 5-2. Wiring for Example Programs
Color Description CR1000 CR10X
White Signal (+) DIFF Analog High DIFF Analog High
Black Signal (-) *DIFF Analog Low *DIFF Analog Low
Shield Shield
G
* Jumper to AG or
with user supplied wire.
5.4.1 CR1000 Example Program
'CR1000
'Declare Variables and Units
Public Solar_Wm2
Public Solar_MJ
Units Solar_Wm2=W/m²
Units Solar_MJ=MJ/m²
'Hourly Data Table
DataTable(Table1,True,-1)
DataInterval(0,60,Min,10)
Average(1,Solar_Wm2,FP2,False)
EndTable
'Daily Data Table
DataTable(Table2,True,-1)
DataInterval(0,1440,Min,10)
Totalize(1,Solar_MJ,IEEE4,False)
EndTable
'Main Program
BeginProg
Scan(10,Sec,1,0)
'CMP3-L Pyranometer measurement in Wm
-2
:
'The Multiplier (m) for this example is based upon a sensor calibration (c) of
'15.02 µV/Wm
-2
, and will be different for each sensor.
'Multiplier (m) = 1000/c = 66.577896.
7
Commenti su questo manuale