beautypg.com

2 cr10x example program, Cr10x example program – Campbell Scientific 05103, 05103-45, 05106, and 05305 R. M. Young Wind Monitors User Manual

Page 19

background image

05103, 05103-45, 05106, and 05305 R.M. Young Wind Monitors

'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
If WindDir<0 Then WindDir=0

'Call Data Tables and Store Data
CallTable(Table1)
NextScan
EndProg

7.4.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


2: Excite-Delay (SE) (P4)
1: 1

Reps

2: 5

2500 mV Slow Range

; 5000 mV(slow/60 hz) Range for CR23X, 21X, CR7

3: 1

SE

Channel

4: 1

Excite all reps w/Exchan 1

5: 2

Delay (0.01 sec units)

6: 2500

mV

Excitation

; 5000 mV for CR23X, 21X, CR7

7: 4

Loc [ WindDir ]

8: 0.142

Multiplier

; 0.071 for CR23X, 21X, CR7

9: 0

Offset


3: If (X<=>F) (P89)
1: 4

X Loc [ WindDir ]

2: 3

>=

3: 360

F

4: 30

Then

Do


4: Z=F x 10^n (P30)
1: 0

F

2: 0

n,

Exponent

of

10

3: 4

Z Loc [ WindDir ]

13