Campbell Scientific SR50A Distance Sensor User Manual

Page 35

Advertising
background image

SR50A Sonic Ranging Sensor


5: Z=SQRT(X) (P39)
1: 6

X Loc [ Mult1 ]

2: 6

Z Loc [ Mult1 ]


;Distance to the Snow Surface is obtained by multiplying the temperature correction
;to the Raw Distance value
6: Z=X*Y (P36)
1: 3

X Loc [ Raw_Dist ]

2: 6

Y Loc [ Mult1 ]

3: 7

Z Loc [ DistToSnw ]


;Set the initial distance from the SR50A to the ground in meters:
7: Z=F x 10^n (P30)
1: 2.5

F

2: 00

n,

Exponent

of

10

3: 2

Z Loc [ DisToGnd ]


8: Z=X-Y (P35)
1: 2

X Loc [ DisToGnd ]

2: 7

Y

Loc

[

DistToSnw

]

3: 8

Z Loc [ SnowDepth ]


;Hourly Data Output
9: If time is (P92)
1: 0

Minutes (Seconds --) into a

2: 60

Interval (same units as above)

3: 1

Set Output Flag High (Flag 0)


10: Set Active Storage Area (P80)^28428
1: 1

Final Storage Area 1

2: 60

Array

ID


11: Real Time (P77)^30811
1: 1220

Year,Day,Hour/Minute

(midnight

=

2400)


12: Sample (P70)^20443
1: 1

Reps

2: 8

Loc

[

SnowDepth

]


;The SR50A signal quality value can optionally be stored as well
13: Sample (P70)^22572
1: 1

Reps

2: 4

Loc [ Sig_Qual ]


*Table 2 Program
02: 0.0000 Execution

Interval

(seconds)


*Table 3 Subroutines

End Program

29

Advertising