GeoCOM Reference Manual
Alt User - AUS
Leica TPS1200 / TS30 / TM30 – Version 1.50
39
6.3
FUNCTIONS
6.3.1
AUS_GetUserAtrState - getting the status of the ATR mode
AUS_GetUserAtrState...............................................................................................................................................................................................................................................................
18006...............................................................................................................................................................................................................................................................AUS_GetUserA
C-Declaration
............
trState
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 18006
AUS_GetUserAtrState(ON_OFF_TYPE &OnOff)
VB-Declaration
VB_AUS_GetUserAtrState (On/Off As Long)
ASCII-Request
%R1Q,18006:
ASCII-Response
%R1P,0,0:
RC,OnOff[long]
Remarks
Get the current status of the ATR mode on automated instrument models. This command does not indicate
whether the ATR has currently acquired a prism. Note the difference between GetUserATR and GetUserLOCK
state.
Parameters
OnOff out
State of the ATR mode
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
GRC_NOT_IMPL
5
ATR not available; no automated instrument.
See Also
AUS_SetUserAtrState
Example
GRC_TYPE
rc;
ON_OFF_TYPE OnOff;
// look for ATR state and set On if it is Off
rc = AUS_GetUserAtrState(OnOff);
if (OnOff == OFF)
{
rc = AUS_SetUserAtrState(ON);
if (rc == GRC_OK)
{
// set of ATR status successful
}
else
{
// no automated instrument
}
}