GeoCOM Reference Manual
Electronic Distance Measurement – EDM
Leica TPS1200 – Version 1.50
116
12.4.3
EDM_SetEglIntensity – changing the intensity of the electronic guide light
EDM_SetEglIntensity............................................................................................................................................................................................................................................................................
ensity
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1059
1059 ................................................................................................................................................................................................................................................................EDM_SetEglInt
C-Declaration
EDM_SetEglIntensity (EDM_EGLINTENSITY_TYPE
eIntensity)
VB-Declaration
VB_EDM_SetEglIntensity (ByVal eIntensity As
Long)
ASCII-Request
%R1Q,1059:
eIntensity [long]
ASCII-Response
%R1P,0,0:
RC
Remarks
Changes the intensity of the Electronic Guide Light.
Parameters
intensity
In
EDM_EGLINTEN_OFF
EDM_EGLINTEN_LOW
EDM_EGLINTEN_MID
EDM_EGLINTEN_HIGH
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
GRC_SYSBUSY
13 EDM
already
busy
GRC_EDM_DEV_NOT_INSTALLED
778
Electronic Guide Light not implemented
GRC_EDM_INVALID_COMMAND
770
When an invalid intensity is entered
See Also
EDM_GetEglIntensity ()
Example
RC-TYPE rc;
EDM_EGLINTENSITY_TYPE eIntensity, eNewIntensity;
// Get actual EGL intensity
rc = EDM_GetEglIntensity(eIntensity);
if (rc == GRC_OK)
{
// switch EGL intensity one level up
switch (eIntensity)
{
case EDM_EGLINTENSITY_OFF:
eIntensityNew = EDM_EGLINTENSITY_LOW; break;
case EDM_EGLINTENSITY_LOW:
eIntensityNew = EDM_EGLINTENSITY_MID; break;
case EDM_EGLINTENSITY_MID:
eIntensityNew = EDM_EGLINTENSITY_HIGH;break;
case EDM_EGLINTENSITY_HIGH:
break; // Allready highest intensity
default:
eIntensityNew = EDM_EGLINTENSITY_LOW;
}
//Set new EGL intensity
rc = SetEglIntensity(eIntensityNew);
// Handle errors
}