3 goesgps, 4 goessetup, Goesgps – Campbell Scientific TX320 Transmitter User Manual

Page 34: Goessetup

Advertising
background image

TX320 Transmitter

See Section 8.3, Error Codes, for a list of error codes and details about the
error codes.

7.5.3 GoesGPS

Example:

Public GPSdata(6), GPStime(7)

GoesGPS(GPSdata(), GPStime())

The instruction GoesGPS() returns two arrays of information. The first array
is six elements long. The second array is seven elements long. The first array
includes the result code (see TABLE 8-1), time in seconds since January 1,
2000, latitude in fractional degrees with 100 nanodegree resolution, longitude
in fractional degrees with 100 nanodegree resolution, elevation as a signed 32-
bit number in centimeters, and magnetic variation in fractional degrees with a
one millidegree resolution.

The second array, which must be dimensioned to seven, holds year, month,
day, hour (GMT), minute, seconds, microseconds. The second array can be
used to set the datalogger’s clock. See the ClockSet() instruction in the
CRBasic help for details.

7.5.4 GoesSetup

In GoesSetup(), all parameters can be variables of type long except for the
Timed Interval, Timed Offset, and Random Interval which are all of type string.

The GoesSetup() and GoesData() only return error messages at run time.

Using GoesSetup(), the datalogger can configure the transmitter under
program control. Because the parameters in the GoesSetup() instruction can
be variables, error checking is done at run time, not compile time. Using
GoesSetup(), the custom display menu options, and the datalogger
keypad/display, programs can be written to allow TX320 configuration via
simple menus on the keypad/display. See CRBasic help and Display Menu for
details. GoesSetup() can also be used with constant values allowing fixed
GOES configuration parameters to be stored in the datalogger, and executed
when needed.

After GoesSetup() executes, several TX320 settings are set to default values.

1) Messages are not centered in the transmission window.

2) Self-Timed message format is set to ASCII, which ONLY changes the flag

word. Pseudo binary formats will still work.

3) Random message format is set to ASCII, which ONLY changes the flag

word. Pseudo binary formats will still work.

4) Empty buffer message is turned off.

5) Randomizing percentage is set to 50%.

6) Data in the random buffer is repeated until cleared by the datalogger.

7) Random message counter is turned off.

24

Advertising