2 goesstatus read status, 3 goesstatus read last message status, Goesstatus read status – Campbell Scientific TX320 Transmitter User Manual

Page 32: Goesstatus read last message status, 1. goesstatus command 0: read time, 2. goesstatus, Command, Read status

Advertising
background image

TX320 Transmitter

Command 0 (Read Time) will read the TX320 clock. Under normal operating
conditions, the time is GMT. There are delays in reading the time from the
TX320. The array needs to be four elements or more. Data are returned as:
result code, hour, minute, second.

TABLE 7-1. GoesStatus Command 0: Read Time

Index Contents
1

Command Result Code

2 Hours

(GMT)

3 Minutes
4 Seconds

7.5.2.2 GoesStatus Read Status

Example:

Public Stats(13)

GoesStatus(Stats(), 1)

Command 1 (Read Status) is used to read information regarding the current
status of the transmitter. Information returned includes the number of bytes in
each data buffer, the time until transmission, and a loaded battery voltage.

TABLE 7-2. GoesStatus Command 1: Read Status

Index Contents
1

Command Result Code

2

Bytes of data in self-timed buffer

3

Time until next self-timed transmission: Days

4

Time until next self-timed transmission: Hours

5

Time until next self-timed transmission: Minutes

6

Time until next self-timed transmission: Seconds

7

Bytes of data in random buffer

8

Time until next random transmission interval start: Hours

9

Time until next random transmission interval start: Minutes

10

Time until next random transmission interval: Seconds

11

Fail-safe, 1 indicates transmitter disabled due to fail-safe.

12

Loaded power supply voltage, 1 amp load. (tenths of volts)

13

Average GPS acquisition time (tens of seconds)

7.5.2.3 GoesStatus Read Last Message Status

Example:

Public LastStats(14)

GoesStatus(LastStats(), 2)

Command 2 (Read Last Message Status) is used to read information regarding
the last transmission. Information includes the type of transmission, size,

22

Advertising