beautypg.com

D.3.1 example of template construction – Triton Isis User Manual

Page 50

background image

June 2004 Isis® Sonar User's Manual, Volume 2

40

D.3.1

Example of Template Construction

Say a simple data logger transmits data over a serial port at 2400 baud, 1
stop bit, 8 data bits and even parity. An example of a string transmitted over
such a serial port might be

4/20/90 17:31:22 NORTH 93285.35 EAST 319294.29,

H:344.0
Before Isis can use the above data, you need to set up a com port to
receive it. You do so in the Serial Port Setup dialog box (Figure D-1 in this
book). In this case, you would set the Baud Rate to 2400, Data Bits to 8,
Stop Bits to 1 and Parity to Even.
Second, create the serial navigation template. The example transmission
string previously mentioned shows that data is formatted by the data logger
in the following order:

day month year hour minute second north east heading

For this example, we will assume that the heading is “course made good,”
that the heading has been processed by the data logger, and that no other
heading is available. Consequently, the towfish will have to use that
heading. Also assume that Isis will synchronize its system time and date to
that of the data logger. This set of assumptions will enable Isis to correctly
return coordinates for imagery pixels when the cursor is moved around the
graphics display.

When you construct a template to match the data transmitted with the
template codes just described, the result would be a string in a tokenized
format:

DMYHISNEh

Isis interprets the tokenized DMYHISNEh string as follows:
D =

day

20

M =

month 4

Y =

year 90

H =

hour 17

I =

minute

31

S =

second

22

N =

northing

93285.35

E =

easting

319294.29

h =

towfish heading

344.0

Appendix D: Serial Interfaces