Example Programs; Cr1000 Example Program; Wiring For Example Programs - Campbell 05103 User Manual

R.m. young wind monitors
Hide thumbs Also See for 05103:
Table of Contents

Advertisement

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.
Colour Wire Label
Red
Black
Green
Blue
White
Clear
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
Table 7-4. Wiring for Example Programs
WS Signal
WS Reference
WD Signal
WD Volt Excite
WD Reference
Shield
CR1000
CR10X
P1
P1
G
SE 1
SE 1
EX 1
E1
AG
G
User Manual
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

0510605103-4505108-450530505108

Table of Contents