Vous êtes sur la page 1sur 4

TPS NEWS 2002 Issue 2

Monthly newsletter on Leica Geosystems TPS, March 4th 2002

And last, but by no means least,


Editors Note
the GeoBASIC program de-
We spend much time in this velopment environment al-
Newsletter talking about instru- lows an infinite variety of appli-
ment hardware and measure- cation programs to be devel-
ment features - range, accu- oped. The remainder of this
racy, angles and distances, etc. article will concentrate on the
GeoBASIC Integrated Devel-
This month we bring you an
opment Environment (IDE) and
article on a software feature that the worlds most versatile total
the possibilities that this envi-
really sets the TPS1100 Profes- station. The TPS1100 concept
ronment offers to a TPS1100
sional Series instrument apart. allows the user to customise
user.
GeoBASIC allows the user to each instrument according to
develop his or her own on- needs. There are no less than What is GeoBASIC?
board software solutions, mak- three different methods of tailor-
GeoBASIC is a programming
ing the TPS1100 a tool with ing a TPS1100 instrument to
language for developing on-
infinite possibilities. the individual preferences of
board applications for TPS1100
each user:
Kevin Grist has worked for total stations. The core lan-
Leica Geosystems in Spain for Personalised Code Lists allow guage appears similar to to-
many years. They have the user to adapt the data col- day's common Windows BA-
achieved monumental success lected with the sensor to be SIC dialects such as Visual
with the development of 100% compatible with their Basic, therefore it is easy to
Avance an on-board GeoBA- mapping or CAD system. learn and use.
SIC solution tailor-made for the The TPS Configuration tool However, GeoBASIC's main
Spanish market. With all his allows a completely new inter- power lies in its ability to use
experience he was the perfect face to be designed according many of the existing instrument
person to write this article to the needs of each user or subsystems and dialogs. The
Thank you Kevin! application. developer can call an appropri-
Anna
TPS1100 Professional Series
TPS1100 The worlds most
versatile total station
The introduction of the
TPS1100 series of total stations
opened up a whole new range
of measurement applications
due to advances in instrument
hardware. The combination of
reflectorless distance meas-
urement technology and auto-
matic target recognition enabled
TPS1100 users to benefit from
a true all-round measurement
sensor.
However, it is perhaps the in-
strument software that allows
the TPS1100 series to be called The GB Studio User Interface
TPS NEWS 2002 Issue 02

ate built-in function for setting velopment. Given that it is not TYPE TMC_STATION_Type
parameters, measuring, geo- necessary to load the program dE0 AS Double easting co-ordinate
detic calculations, and many onto the instrument, the code- dN0 AS Double northing co-
ordinate
other tasks. compile-test cycle can be car- dH0 AS Double height co-ordinate
ried out quickly and easily. dHi AS Double instrument height
With these tools at hand, the
programmer can quickly build On-Line Documentation: GB END TMC_STATION_Type
sophisticated geodetic applica- Studio is delivered with a Other pre-defined types allow
tions. comprehensive on-line refer- the manipulation of measure-
ence guide in addition to sam- ments, instrument corrections,
ple applications and detailed offsets, and point data.
descriptions of the Geobasic
The GeoBASIC IDE Automatic unit handling:
programming process.
One of the problems of writing
The GeoBASIC IDE is made What are the differences applications that will be used
up of the following compo- between BASIC and Geo- in different countries, is that
nents: BASIC? the units of measurement used
GB Studio: GBStudio is a The main differences between often change. This problem is
development environment that a standard BASIC language solved using GeoBASIC since
includes a source editor, com- and GeoBASIC are due to the all programs are developed
piler, project manager and a origin of the language as a using SI units. When the user
source level debugger. develoment tool for survey changes a measurement unit
applications. These differ- in the instrument configuration,
The user interface is similar to the screen output from the
ences include:
that of other Windows de- GeoBASIC program changes
velopment environments and Predefined data structures: automatically without the pro-
thus allows rapid debugging of GeoBASIC includes a set of grammer having to intervene.
programs. pre-defined structured types
(strings, arrays, and struc- Multi-language support:
TPS1100 Simulator: The GeoBASIC programs can be
tures). The definitions of such
simulator reproduces the be- translated to an infinite number
predefined types are imple-
haviour of a TPS1100 instru- of languages using a simple
mented in the GeoBASIC com-
ment, thus eliminating the translation tool.
piler and are accessible to the
need to have an instrument
programmer as any other de- Pre-defined dialogs: In order
on-hand during program de-
fined types. to minimise the code needed
For example for the programming of repeti-
the pre- tive tasks such as the user
defined type interface, GeoBASIC includes
used to store a series of pre-defined dialogs,
an instrument such as the standard meas-
station is de- urement dialog, that a pro-
fined as fol- grammer can call with a few
lows: lines of code.
Geodesy Maths Functions:
One of the most appealing
GeoBASIC features for survey
application developers are the
GeoMath functions. With one
line of code, the programmer
can call a vast library of func-
tions for all sorts of geometric
calculations. These functions
range from the very simple:
TPS 1100 Simulator
TPS NEWS 2002 Issue 02

GM_CalcAziAndDist( data can be displayed in an identical to the existing instru-


StationPt AS GM_Point_Type,
TargetPt AS GM_Point_Type,
easily understandable form. In ment fleet.
dAzi AS Double, this example, a theoretical
dDist AS Double,
A GeoBASIC application was
road cross-section is displayed
dStdvAzi AS Double, developed that not only repli-
on the screen. To stakeout a
dStdvDist AS Double ) cated the user interface of the
point on the cross-section, the
for calculating azimuth and existing instruments but also
user only has to select the
distance beween two points, to offered the advantages of
the somewhat more complex: automatic target recognition
and motorization. Needless to
GM_CalcClothCoord( byVal
dTau AS Double,
say Leica Geosystems won
dX AS Double, the first tender for 65 instru-
dY AS Double ) ments and a second tender for
over 200 more.
for calculating a co-ordinate on
the unitary clothoide. Think laterally and innovate!:
One of the most annoying
Instrument control func- problems for todays surveyor,
tions: As with the GeoMaths armed with an array of high-
functions, the programmer can desired chainage and the point technology solutions for most
also control the instrument to stakeout with the arrow keys tasks, is having to measure
sub-systems using pre-defined and then press the CONT the height of the instrument
functions. These functions key. Road stakeout has never with a tape measure. Thanks
range from aiming a motorized been so easy! to GeoBASIC, reflectorless
instrument to a specific hori- A completely new user inter- measurement technology and
zontal and vertical angle to face: It is sometimes the case a prism
changing the prism constant or that a user may have a large
turning on the instrument fleet of survey instruments and
guide-light. a standard survey methodol-
In addition to these differences ogy that has been used for
between a standard BASIC many years. In this case the
implementation and GeoBA- survey sensor must adapt it-
SIC, GeoBASIC also allows self to the needs of the user,
the modular development of an ideal example for using
programs meaning that code GeoBASIC.
can be reused between appli- One such a case is the Dutch
cations. pole, this problem is now a
cadastral institute. This insti- thing of the past. A GeoBASIC
tute issued a tender to buy program has been written that
Application Examples total stations in which it was measures the vertical angle
The range of applications that (), and the slope distance
can be written within the Geo- (Ds) to a point on the prism
BASIC IDE is infinite. The fol- pole. The measured point on
lowing examples show that the the prism pole, is located at a
possibilities of GeoBASIC are known distance from the point
only limited by the developers of the pole (hc), which in turn is
imagination! placed on the station point.
Graphical User Interface: With this measurement data
Survey data in numerical form the height of the instrument
is often difficult to interpret, axis (Hi) can be calculated
especially in the field. Using specified that the user inter- using the formula shown. Sim-
GeoBASICs graphics capabili- face and operation of the se- ple!
ties, complicated numerical lected instrument should be
TPS NEWS 2002 Issue 02

Ds
Summary infinte, being limited only by the
imagination of the programmer.
Hi GeoBASIC is a powerful pro-
gramming environment that is If you are a programmer, take
hc simple to use and tailored to the the plunge and try the GeoBA-
needs of on-board survey appli- SIC programming experience. If
cations. The GeoBASIC IDE not, get in touch with your local
takes advantage of the in-built Leica dealer to find out how
survey functionality of TPS1100 your ideas can be made into a
total stations thus simplifying GeoBASIC reality.
the programmers task.
Kevin Grist
The range of applications that kevin.grist@leica-geosystems.com
H i2 = hc2 + Ds2 2 hc Ds cos can be written in GeoBASIC is

News
A new version of Leica Survey Office 2.0 was released last month. It includes a modernized user interface
and a number of new features. The major new features are:

General More than 4 COM ports are supported


Instrument series can now be selected instead of
the instrument type
Data Exchange Communication to the instrument is only estab-
Manager lished when needed
Printing from file viewer is now possible
Coordinate Point Codes and Attributes 1-8 are now supported
Editor User definable column display for the spread-
sheet
Saving coordinates to GSI8
Saving coordinates to tab-separated ASCII files
Decimal recognition within the ASCII Import Wiz-
ard is now independent of the decimal separator
setting of the operating system
Printing of files is now improved
Codelist Codelists can now be opened and saved via stan-
Manager dard Windows dialogs
Entry of choicelist items improved
Software Upload New easy-to-use Software Installation Wizard for
TPS1100, RCS1100 and TPS1000
Format Manager Problems with editing variables under Windows
2000 solved
Configuration TPS Setup program is now named Configuration
Manager Manager

Operating Systems: Windows 95/98/Me and Windows NT/2000/XP


Languages: Leica Survey Office 2.0 is available in the following 10 languages: English, German,
Italian, Spanish, French, Norwegian, Finnish, Polish, Chinese, and Japanese.
Internet Download: Leica Survey Office 2.0 can be downloaded from the Leica Geosystems Web page:
http://www.leica-geosystems.com/surveying/product/software/surveyoffice.htm

Publishing
If you have an article you would like
published in TPS News 2002 which
may be of interest to other readers, Leica Geosystems AG
CH-9435 Heerbrugg
please contact Anna McKenzie at
(Switzerland)
Anna.McKenzie@leica-geosystems.com Phone +41 71 727 31 31
Fax +41 71 727 46 73
The next issue of TPS News will be www.leica-geosystems.com
th
published on 25 March.

Vous aimerez peut-être aussi