Appendix C. CVF4 Ventilation Unit
C.5 CVF4 Example Program
'CR1000 Series Datalogger
'Example program for CVF4
'Declare Public Variables
Public PTemp, batt_volt
Public GH_Irradiance_CMP11
Public CVF4_Tach
Public SolarPos(5)
Public Airtemp
Public TimeArray(9)
'Declare Constants
Const CMP11_Sensitivity = 12.5
Const Latitude = 41.767561
Const Longitude = -111.85592
Const Altitude = 1358
'Define Aliases
Alias SolarPos(1) = SolarAzimuth
Alias SolarPos(2) = SunElevation
Alias SolarPos(3) = HourAngle
Alias SolarPos(4) = Declination
Alias SolarPos(5) = AirMass
'Define Data Tables
DataTable (Ten_Min,1,-1)
DataInterval (0,10,Min,10)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
Average (1,GH_Irradiance_CMP11,FP2,False)
StdDev(1,GH_Irradiance_CMP11,FP2,False)
Average (1,CVF4_Tach,FP2,False)
EndTable
'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,250) 'Measure wire panel temperature
Battery (batt_volt) 'Measure battery voltage
'Retrieve the current time for use in the Solar Position Calculation
'---------------------------------------------------------------------------
RealTime (TimeArray())
'---------------------------------------------------------------------------
'Measure Air Temperature
'---------------------------------------------------------------------------
Therm109 (Airtemp,1,3,Vx1,0,250,1.0,0)
'---------------------------------------------------------------------------
'Calculate the Solar Position
'---------------------------------------------------------------------------
SolarPosition (SolarPos(),TimeArray,0,Latitude,Longitude,Altitude,-1,Airtemp)
'---------------------------------------------------------------------------
'Measure GH Irradiance with CMP11 Pyranometer
'---------------------------------------------------------------------------
VoltDiff(GH_Irradiance_CMP11,1,mV25,1,True,0,_60Hz,1000/CMP11_Sensitivity,0)
'---------------------------------------------------------------------------
C-8
Содержание CMP11
Страница 2: ......
Страница 6: ......
Страница 10: ...Table of Contents iv ...
Страница 30: ...CMP6 CMP11 and CMP21 Pyranometers 20 ...
Страница 47: ......