![Campbell CMP10 Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/campbell/cmp10/cmp10_product-manual_489175028.webp)
Appendix B. Example Programs
B-3
B.3 Example Program for Measuring a CMP21
Although this example is for the CR1000X, other CRBasic data loggers are
programmed similarly. The following program measures the CMP21 every
second. It converts the pyranometer millivolt output to W
•
m
–2
. A pyranometer
calibration of 8.65 µV / W
•
m
–2
is used for the example program. The resistance
of the internal thermistor is converted to degree Celsius and then to Kelvin.
Every 10 minutes, the program outputs the average and standard deviation of
the flux (W
•
m
–2
) measurements and temperature measurements.
Wiring for this example is given in TABLE
TABLE B-3. CR1000X Wiring for CMP21 Example Program
Wire Color
Description
CR1000X
Jumper
1
White
Solar Signal (+)
3H
Blue
Solar Signal (–)
3L
⏚
Yellow
Voltage Excitation
VX1
Black
Temp Signal
15 SE
Brown
Signal Reference
⏚
Clear
Shield
⏚
1
Jumper 3L to
⏚
with user-supplied 26 AWG or larger wire.
CRBasic Example B-3. CR1000X Example Program for Measuring a CMP21
'CR1000X Series Data Logger
Public
PTemp
Public
Batt_Volt
Public
CMP21_Irr
Public
CMP21_T_C
Public
CMP21_T_K
Dim
Rs,Vs_Vx
Units
CMP21_Irr = W/m2
Units
CMP21_T_C = Degrees C
Units
CMP21_T_K = Degrees K
DataTable
(TenMin,1,-1)
DataInterval
(0,10,Min,10)
Minimum
(1,Batt_Volt,FP2,0,False)
Sample
(1,PTemp,FP2)
Average
(1,CMP21_Irr,IEEE4,False)
StdDev
(1,CMP21_Irr,IEEE4,False)
Average
(1,CMP21_T_C,IEEE4,False)
StdDev
(1,CMP21_T_C,IEEE4,False)
Average
(1,CMP21_T_K,IEEE4,False)
StdDev
(1,CMP21_T_K,IEEE4,False)
EndTable
BeginProg
Scan
(1,Sec,0,0)