'CR1000X Series Datalogger 'Example datalogger program for Apogee Instruments SE-202/212/205/215 photometric sensors 'date: December 19, 2018 'Revised: December 31st, 2020 'program author: Jacob Bingham / John Huber 'Wiring: 'White -> Single ended channel 1 (Sensor output signal) 'Black -> Ground port (Signal ground) 'Red -> Sensor input power (5 to 24 VDC, 12 VDC recommended if possible) 'Clear -> Ground (Shield) 'Explanation of Constants and Variables Used in Datalogger Program 'BattV = datalogger battery voltage 'PanelT = datalogger panel temperature 'Lux = incoming luminous flux radiation in Lux (lumens per square meter) 'Declare Public Variables Public BattV, PanelT Public Lux, OutputmV Const CalFac = 2.0 'Change this value to match the calibration factor of your specific sensor model 'Define Data Tables DataTable (Illuminance,1,-1) DataInterval (0,1,Min,10) Minimum(1,BattV,IEEE4,0,False) Sample(1,PanelT,IEEE4) Average(1,Lux,IEEE4,False) EndTable 'Main Program BeginProg Scan(1,Sec,0,0) Battery(BattV) PanelTemp(PanelT,_60Hz) 'Measure Incoming Global Shortwave Radiation (SWi) On a Differential Channel (Can Also Be Measured On a Single-ended Channel) VoltDiff(OutputmV,1,mV5000,1,True,0,_60Hz,1.0,0) 'Apply calibration factor Lux = OutputmV * CalFac 'Call Output Tables CallTable Illuminance NextScan EndProg