CRBasic Example 1: CR1000X program using Modbus over RS-485 to measure the SR05
ModbusMaster
(MBResult_VoltOut,ComC5,19200,62,4,SR05(11),3,2,1,100,2)
SR05_VoltageOut = SR05(11)
'Humidity
ModbusMaster
(MBResult_Humidity,ComC5,19200,62,4,SR05(13),99,1,1,100,3)
SR05_Humidity = SR05(13)/100
CallTable
SR05_MetaData
NextScan
EndProg
CRBasic
Example
2:
CR1000X
program
using
analog
ue
voltage
to
measure
the
SR05
'CR1000X Series Datalogger
'Hukseflux SR2005 Pyranometer
'SR05 is an ISO 9060 Second Class pyranometer
Public
SR05_Analog_IRR
DataTable
(OneMin,1,-1)
Average
(1,SR05_Analog_IRR,IEEE4,False)
Maximum
(1,SR05_Analog_IRR,IEEE4,False,False)
Minimum
(1,SR05_Analog_IRR,IEEE4,False,False)
StdDev
(1,SR05_Analog_IRR,IEEE4,False)
EndTable
BeginProg
Scan
(1,Sec,0,0)
'Irradiance uncompensated (Analog)
VoltDiff
(SR05_Analog_IRR,1,mV1000,1,True ,0,60,1.6,0)
CallTable
OneMin
NextScan
EndProg
SR05 Second Class Pyranometer with Various Outputs
11