2 pulse train programming example 2 – Campbell Scientific SR50-L CSC Ultrasonic Distance Sensor User Manual

Page 21

Advertising
background image

SR50 Sonic Ranging Sensor

15

3.4.2 Pulse Train Programming Example 2

Example 2 will measure every execution interval.

This program will measure the SR50 when Flag 1 is set high, which can be
done manually and/or at a specified interval. All instructions above those that
define the Output Interval must remain together. Note that in this example the
datalogger program executes every 10 seconds, but the SR50 measures and
processes only every 15 minutes. This results in considerable power savings at
remote sites without giving up data. This also allows the user to trigger a scan
at any time.

* Table 1 Program
01: 10.0

Execution

Interval

(seconds)

The execution interval must be long enough to count all pulses
generated by the SR50. The number of pulses is dependent on
the SR50 address setting and distance to target.

As configured from the factory (Address 0), it will take 4
seconds to measure 10 meters. Shorter distances will take less
time.

Measure air temperature and convert to Kelvin. This measurement must
represent the temperature of air where the SR50 is operating.

1: Temp 107 Probe (P11)
1: 1

Reps

2: 1

In

Chan

3: 1

Excite all reps w/Exchan 1

4: 22

Loc [ T_Kelvin ]

5: 1

Mult

6: 273.15 Offset


Enable the Pulse Count instruction (P3) to count pulses from the SR50 when
they are generated. The negative multiplier will generate a negative distance-
to-surface so that when the distance-to-ground is added distance-to-surface,
snow depth is computed.

The Distance-to-surface will be set to 0.00 after measurement.

2: Pulse (P3)
1: 1

Reps

2: 1

Pulse

Input

Chan

3: 00

Config

Option

4: 21

Loc [ Dis2Surf ]

5: -.0025 Mult
6: 0.0

Offset

NOTE

Advertising