WXT520 Weather Transmitter
8
6.6.1.2 Example CR200(X) Program
'CR200 Series
Public BattV
Public PTemp_C
Public WXT(7)
Dim N
Alias WXT(1)=WindDir
Alias WXT(2)=WindSpd
Alias WXT(3)=AirTemp
Alias WXT(4)=RelHumidity
Alias WXT(5)=AirPressure
Alias WXT(6)=Ramount
Alias WXT(7)=Hamount
Units BattV=Volts
Units PTemp_C=Deg C
Units WindDir=Degrees
Units WindSpd=meters/second
Units AirTemp=Deg C
Units RelHumidity=%
Units AirPressure=mbar
Units Ramount=mm
Units Hamount=hits/cm^2
'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,60,Min)
WindVector(WindSpd,WindDir,False,0,0)
FieldNames("WindSpd_Mean,WindDir_Mean,WindDir_SD1")
Average(1,AirTemp,False)
Sample(1,RelHumidity)
Sample(1,AirPressure)
Totalize(1,Ramount,False)
Totalize(1,Hamount,False)
EndTable
'Main Program
BeginProg
'Main Scan
Scan(5,Sec)
'Dalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C)
'Reset WXT520 Sensor measurements
For N=1 To 7
WXT(N)=NaN
Next
'WXT520 Weather Transmitter measurements 'WindDir', 'WindSpd', 'AirTemp',
'RelHumidity', 'AirPressure', 'Ramount', and 'Hamount'
SDI12Recorder(WXT(),"0R!",1,0)
'Call Data Tables and Store Data
CallTable Table1
NextScan
EndProg
6.6.2 Edlog Programming
Our CR500, CR510, CR10(X), and CR23X dataloggers are programmed with
Edlog.
These dataloggers use Instruction 105 to read the WXT520. Your datalogger
manual has a detailed explanation of Instruction 105.