Appendix f. datalogger program example – Campbell Scientific VSP3 Vosponder Voice Radio Interface User Manual

Page 53

Advertising
background image

F-1

Appendix F. Datalogger Program
Example

This program will send three new data values to the Vosponder every ten
seconds. Every five minutes the most recent data values will be broadcast over
the radio link. The data values can also be broadcast at anytime by using a
radio handset and keying in the DTMF code that has been set in the
Vosponder. If the batter voltage ever drops below 10.5 volts, the message
“Site 31, alarm low battery” will be broadcast over the radio link every ten
minutes as long as the battery voltage remains low.

*Table 1 Program

01: 10

Execution Interval (seconds)

;MEASURE BATTER VOLTAGE
1: Batt Voltage (P10)

1:

1

Loc [ BatVolts ]

;MEASURE THE DATALOGGERS INTERNAL TEMPERATURE
2: Internal Temperature (P17)

1:

2

Loc [ IntTemp ]

;CALCULATE THE TIME
3: Time (P18)

1:

1

Minutes into current day (maximum 1440)

2:

0

Mod/By

3:

3

Loc [ Time ]

;TRANSFER THREE DATA VALUES TO THE VOSPONDER
4: SDI-12 Recorder (P105)

1:

1

SDI-12 Address

2:

0

Start Measurement (aM0!)

3:

1

Port

4:

1

Loc [ BatVolts ]

5:

1.0

Mult

6:

0.0

Offset

5: Extended Parameters 4 Digit (P68)

1:

88

Option

;X

2:

68

Option

;D

3:

128

Option

;Data Value 1 = BatVolts

4:

128

Option

;Data Value 2 = IntTemp

5:

128

Option

;Data Value 3 = Time

6:

0000

Option

;End of command marker

7:

0000

Option

8:

0000

Option

;BROADCAST THE MOST RECENT DATA VALUES EVERY FIVE MINUTES
6: If time is (P92)

1:

0

Minutes (Seconds --) into a

2:

5

Interval (same units as above)

3:

30

Then Do

Advertising