User Manual
13
7.4.4
Example Programs
The following programs measure the Wind Monitor 05103 every 5 seconds, and
store mean wind speed, unit vector mean direction, and standard deviation of the
direction every 60 minutes. Wiring for the examples is given in Table 7-4.
Table 7-4. Wiring for Example Programs
Colour Wire Label
CR1000
CR10X
Red
WS Signal
P1
P1
Black
WS Reference
G
Green
WD Signal
SE 1
SE 1
Blue
WD Volt Excite
EX 1
E1
White
WD Reference
AG
Clear
Shield
G
7.4.4.1
CR1000X Example Program
'CR1000X
'Declare Variables and Units
Public Batt_Volt
Public WS_ms
Public WindDir
Units Batt_Volt=Volts
Units WS_ms=metres/second
Units WindDir=Degrees
'Define Data Tables
DataTable(Hour,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:
'WS_ms
PulseCount(WS_ms,1,P1,5,1,0.098,0)
'WindDir
BrHalf(WindDir,1,mV5000,1,Vx1,1,2500,True,20000,50,355,0)
If WindDir>=360 OR WindDir<0 Then WindDir=0
If WindDir<0 Then WindDir=0
'Call Data Tables and Store Data
CallTable(Hour)
NextScan
EndProg
Содержание 05103
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 26: ......
Страница 37: ...User Manual C 3 Figure C 3 Declination Angles West of True North Are Added to 0 to Get True North...
Страница 38: ...Appendix C Wind Direction Sensor Orientation C 4...
Страница 42: ...User Manual E 2...