2 goesstatus, 1 goesstatus read time – Campbell Scientific TX312 High Data Rate GOES Transmitter User Manual

Page 23

Advertising
background image

TX312 Transmitter

DataTable(GoesStats,true,300)
DataInterval(0,1,hr,0)
Sample(14,LastStatus(),fp2)
EndTable

BeginProg
Scan

(10,Sec,3,0)

Battery

(battery1)

PanelTemp

(PanelT,250)

TCDiff (TCTemp,1,mV25C ,2,TypeT,PanelT,True ,0,250,1.8,32)

CallTable

TempData

If

IfTime

(0,1,Hr)

GOESData

(RC_Data,TempData,0,0,1)

EndIf
If

IfTime

(0,10,min)

GOESStatus

(LastStatus(),2)

EndIf
CallTable

GoesStats

NextScan
EndProg

5.1.2 GoesStatus

The GoesStatus instruction is used to read information from the TX312.
Information that can be read and stored in the datalogger includes information
relating to the next transmission, the last transmission, GPS time and position,
and all logged errors. The status information can be used to set the datalogger
clock and troubleshoot any problems that might arise. The GoesStatus
instruction also includes options to initiate a random transmission on
command.

The GoesStatus instruction includes seven different functions: Read Time,
Read Status, Read Last Message Status, Transmit Random Message, Read
Error Register, Clear Error Register, Return transmitter to on-line mode.

GoesStatus expects two parameters. The first is the array used to store the data
returned by GoesStatus, the second is the command to be issued. The first
element of each array returned by the GoesStatus command is the result code.
The result code is used to test if the GoesStatus instruction executed
successfully. When the result code is zero, GoesStatus executed successfully.
See Table 5.1-2 for details.

5.1.2.1 GoesStatus Read Time

Example:

Public gps(4)

GoesStatus (gps(), 0)

Command zero (Read Time) will read the TX312 clock. Under normal
operating conditions the time is GMT, and quite accurate. There are delays in

17

Advertising