Specifications
Section 6. Data Table Declarations and Output Processing Instructions
Remarks
The GOESGPS instruction returns two arrays. The first array, which must be
dimensioned to 6, holds a result code indicating the success of the instruction,
followed by global positioning information.
The result codes are as follows:
Code Description
0 Command executed successfully
2 Timed out waiting for STX character from transmitter after
SDC addressing
3 Wrong character received after SDC addressing
4 Something other than ACK returned when select data buffer
command was executed
5 Timed out waiting for ACK
6 CS I/O port not available; GOES not attached
7 ACK not returned following data append or overwrite
command
The GPS data values are as follows:
Value Description
Time Seconds since January 1, 2000
Latitude Fractional degrees; 100 nanodegree resolution
Longitude Fractional degrees; 100 nanodegree resolution
Elevation Signed 32-bit number, in centimeters
Magnetic Variation Fractional degrees; 1 millidegree resolution
The second array, which must be dimensioned to 7, holds the following time
values: year, month, day hour (GMT), minute seconds, microseconds.
GOESSetup (ResultCode, PlatformID, MsgWindow, STChannel, STBaud,
RChannel, RBaud, STInterval, STOffset, RInterval)
The GOESSetup instruction is used to program the GOES transmitter for
communication with the satellite.
Syntax
GOESSetup (ResultCode, PlatformID, MsgWindow, STChannel, STBaud,
RChannel, RBaud, STInterval, STOffset, RInterval)
Remarks
Since the purpose of this instruction is to set up the transmitter for
communication, it only has to be run once within the datalogger program (i.e.
it can be placed between the BeginProg and Scan instructions). Information
for all parameters in this instruction is supplied by NESDIS.
See the CRBasic Editor or the SATHDRGOES manual for more detailed
information on the instruction.
6-11