Campbell Scientific VSP3 Vosponder Voice Radio Interface User Manual

Page 15

Advertising
background image

Section 2. Programming the Datalogger

2-3

Additional data values (input locations) can be sent to the Vosponder by adding
P68 commands consecutively, as shown in Example 2-3. The number of data
value characters is limited to no more than 102. For example, you could
transmit as many as 17 data values that each had 6 characters. When
calculating the total number of characters, the positive and negative sign (+/-)
and the decimal point are included.

Example 2-2. Character Count

Input Locations:

Possible Value

Characters

1.

BatVolts

+10.51

6

2.

IntTemp

-15.6126

8

3.

Time

+1012

5

-------------------------------------------------------------------------------

Total Characters

19

Example 2-3 shows only the program section that would send the data values
from the datalogger to the Vosponder. The measurement instructions for all of
the data values would need to be added prior to this section. The code shown
will issue the SDI-12 command “1XD” then transfer nine data values to the
Vosponder.

Example 2-3. Program to send seven data values to the Vosponder

4: SDI-12 Recorder (P105)

1:

1

SDI-12 Address

2:

0

Start Measurement (aM0!)

3:

1

Port

;C1

4:

1

Loc [ BatVolts ]

;Location of the first data point to be sent

5:

1.0

Mult

6:

0.0

Offset

5: Extended Parameters 4 Digit (P68)

1:

88

Option

;Send “X” to indicate an extended command

2:

68

Option

;Send “D” to indicate that data is to follow

3:

128

Option

;Send the first data value (BatVolts)

4:

128

Option

;Send the second data value (IntTemp)

5:

128

Option

;Send the third data value (Time)

6:

128

Option

;Send the fourth data value (AirTemp_C)

7:

128

Option

;Send the fifth data value (Rel_Humid)

8:

128

Option

;Send the sixth data value (Wind_Spd)

6: Extended Parameters 4 Digit (P68)

1:

128

Option

;Send the seventh data value (Wind Dir)

2:

128

Option

;Send the eighth data value (Solar_Rad)

3:

128

Option

;Send the ninth data value (Baro_Pres)

4:

0000

Option

;End of command marker

5:

0000

Option

6:

0000

Option

7:

0000

Option

8:

0000

Option

IMPORTANT: The position that follows the last 128 must have “0000”
(zeros) in it. If the eighth position in the P68 is filled with a 128, then you will
need to issue another P68 with just “0000” (zeros) in it.

Advertising