![Campbell CMP10 Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/campbell/cmp10/cmp10_product-manual_489175026.webp)
B-1
Appendix B. Example Programs
For an example program for using the CVF4 ventilator, see
(p. C-1)
.
B.1 Example Program for Measuring a CMP6
Although this example is for the CR1000X, other CRBasic data loggers are
programmed similarly. The following program measures the CMP6 every
second and converts the millivolt output to W•m
–2
. A sensor calibration of
14.33 µ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
TABLE B-1. CR1000X Wiring for CMP6 Example Program
Wire Color
Description
CR1000X
Jumper
1
White
Solar Signal (+)
1H
Black
Solar Signal (–)
1L
Clear
Shield
⏚
1
Jumper 1L to
⏚
with user-supplied 26 AWG or larger wire.
CRBasic Example B-1. CR1000X Example Program for Measuring a CMP6
'CR1000X Series Data Logger
Public
PTemp
Public
Batt_Volt
Public
CMP6_Irr
Units
CMP6_Irr = W/m2
DataTable
(TenMin,1,-1)
DataInterval
(0,10,Min,10)
Minimum
(1,Batt_Volt,FP2,0,False)
Sample
(1,PTemp,FP2)
Average
(1,CMP6_Irr,IEEE4,False)
StdDev
(1,CMP6_Irr,IEEE4,False)
EndTable
BeginProg
Scan
(1,Sec,0,0)
'Measure the Battery Voltage and Panel Temperature
PanelTemp
(PTemp,60)
Battery
(Batt_Volt)
'Measure the CMP6. Multiplier (M) = 1000/c where c = 14.33.
VoltDiff
(CMP6_Irr,1,mV200C,1,True ,10000,60,1000/14.33,0)
CallTable
TenMin
NextScan
EndProg
NOTE