数据记录仪pro CR1000X系列数据记录仪的例子gram for Apogee Instruments SE-421 digital photometric sensor 'date: May 6, 2020 'Revised: December 31 2020 'program author: John Huber 'Wiring: 'White -> Com C1 port (SDI12 signal) 'Black -> Ground port (SDI12 and power ground) 'Red -> 12 VDC port (Sensor input power) '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 '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(5,Sec,0,0) Battery(BattV) PanelTemp(PanelT,_60Hz) 'Measure illuminance in lux from sensor addressed as "0" SDI12Recorder (Lux,C1,0,"MC!",1.0,0) 'refer to the owner's manual for a list of relevant commands 'Call Output Tables CallTable Illuminance NextScan EndProg