2 goesstatus(), 1 goesstatus read time, Goesstatus() – Campbell Scientific TX320 Transmitter User Manual

Page 31: Goesstatus read time

Advertising
background image

TX320 Transmitter

'program table
DataTable (Tempdata,1,1000)

DataInterval (0,15,min,10)
Sample (1,TCTemp,FP2)
Sample (1,PanelT,FP2)

Sample (1,battery1,FP2)
EndTable

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

7.5.2 GoesStatus()

The GoesStatus() instruction is used to read information from the TX320.
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 Online 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.

7.5.2.1 GoesStatus Read Time

Example:

Public gps(4)

GoesStatus(gps(), 0)

21

Advertising