
Appendix B. Example Programs
‘Measure the Battery Voltage and Panel Temperature
PanelTemp (PTemp,250)
Battery (Batt_Volt)
‘Measure the CMP21 pyranometer
VoltDiff (CMP21_Irr,1,mV25C,3,True,10000,_60Hz,1000/8.65,0)
'CMP21 Thermistor Measurement
BrHalf (Vs_Vx,1,mV5000,15,Vx1,1,2500,True ,0,250,1.0,0)
Rs = 1000*(Vs_Vx/(1-Vs_Vx))
CMP21_T_C = 1/(1.0295e-3+2.391e-4*LN(Rs)+1.568e-7*(LN(Rs))^3)-273.15
'Convert CMP21 temp to Kelvin.
CMP21_T_K = CM273.15
CallTable TenMin
NextScan
EndProg
B-4
Summary of Contents for CMP11
Page 2: ......
Page 6: ......
Page 10: ...Table of Contents iv ...
Page 30: ...CMP6 CMP11 and CMP21 Pyranometers 20 ...
Page 47: ......