Campbell 05103 Instruction Manual - page 12
05103, 05106, and 05305 R.M. Young Wind Monitors
5.4.1 CR1000 Example Program
'CR1000
'Declare Variables and Units
Public Batt_Volt
Public WS_ms
Public WindDir
Units Batt_Volt=Volts
Units WS_ms=meters/second
Units WindDir=Degrees
'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,60,Min,10)
WindVector
(1,WS_ms,WindDir,FP2,False,0,0,0)
FieldNames("WS_ms_S_WVT,WindDir_D1_WVT,WindDir_SD1_WVT")
EndTable
'Main Program
BeginProg
Scan(5,Sec,1,0)
'Default Datalogger Battery Voltage measurement Batt_Volt:
Battery(Batt_Volt)
'05103 Wind Speed & Direction Sensor measurements WS_ms and WindDir:
PulseCount(WS_ms,1,1,1,1,0.098,0)
BrHalf(WindDir,1,mV2500,1,1,1,2500,True,0,_60Hz,355,0)
‘ mV5000
‘range, 5000 mV excitation for CR3000 and CR5000 dataloggers
If WindDir>=360 Then WindDir=0
'Call Data Tables and Store Data
CallTable(Table1)
NextScan
EndProg
5.4.2 CR10X Example Program
;{CR10X}
*Table 1 Program
01: 5.0000 Execution
Interval
(seconds)
1: Pulse (P3)
1: 1
Reps
2: 1
Pulse
Channel
1
3: 21
Low Level AC, Output Hz
4: 3
Loc [ WS_ms ]
5: 0.098
Multiplier
6: 0
Offset
8