beautypg.com

1 cr1000 program, 2 cr10x program, Cr1000 program – Campbell Scientific 03002, 03101, and 03301 R. M. Young Wind Sentry Sensors User Manual

Page 21: Cr10x program

background image

R.M. Young Wind Sentry

7.4.4.1 CR1000 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)

'03002 or 03101 RM Young Wind Sentry Wind Speed Sensor measurement - WS_ms:

PulseCount(WS_ms,1,1,1,1,0.75,0.2)
If WS_ms<0.21 Then WS_ms=0


'03002 or 03301 RM Young Wind Sentry Wind Direction Sensor measurement -
WindDir:

BrHalf(WindDir,1,mV2500,1,1,1,2500,True,0,_60Hz,352,0)
'Use mV5000 range and 5000 mV excitation for CR3000 and CR5000 dataloggers.
If WindDir>=360 OR WindDir<0 Then WindDir=0


'Call Data Tables and Store Data
CallTable(Table1)

NextScan
EndProg

7.4.4.2 CR10X Program

;{CR10X}
*Table 1 Program
01: 5.0000 Execution

Interval

(seconds)


1: Batt Voltage (P10)
1: 1

Loc

[

Batt_Volt

]


;03002 or 03101 RM Young Wind Sentry Wind Speed Sensor measurement - WS_ms:
2: Pulse (P3)
1: 1

Reps

2: 1

Pulse

Channel

1

3: 21

Low Level AC, Output Hz

4: 2

Loc [ WS_ms ]

5: 0.75

Multiplier

6: 0.2

Offset

15