SonTek
ADP Software Manual Version 6.42 (November 1, 2000)
4
particular size (SIZE <kBytes>). For example, “C:\ADP\AA SIZE 1400” will create a new file
each time the data file reaches 1400 kBytes.
Integrated GPS position data
Using the –p command line option allows ADPSA to integrate GPS position data into the file.
See sections 2.5 and 3.5 for more information about using GPS position data to correct ADP
velocity data from a moving vessel. When using integrated GPS data, the user must create a one-
line ASCII text file named “GPSPORT.DEF” to specify the format of the GPS data and the serial
communication parameters used. The basic format of this file is shown below.
<Message Format> <com port> <baud rate> <parity> <data bits> <stop bits>
Where
• <Message Format> is the GPS message format being used. The ADP software will interpret
three different types of GPS data formats: “$GPGXP” and “$GPGGA” $GPGGK”.
• <com port> is the serial port number to which the GPS receiver is connected (1 for COM1 or
2 for COM2). This must be different than the port to which the ADP is connected.
NOTE: Default DOS/WINDOWS serial port COM1 and COM2 configuration be used:
COM1 Interrupt request (IRQ)- 04, Input/output range 03F8-03FF
COM2 Interrupt request (IRQ)- 03, Input/output range 02F8-02FF
Communication ports configured using different settings (even though designated as COM1
or COM2) will not operate.
• <baud rate> is the baud rate setting of the GPS data. Acceptable baud rate settings are 4800,
9600 and 19200.
• <parity> is the parity setting: N for no parity, O for odd, and E for even.
• <data bits> is the number of data bits: 7 or 8.
• <stop bits> is the number of stop bits: 1 or 2.
The following line is an example of the GPSPORT.DEF file when inputting GPS data in the
$GPGXP format on COM 2 at 4800 baud, no parity, 8 data bits, and 1 stop bit.
$GPGXP 2 4800N81
Integrating GPS data with the ADP data file provides an additional option in the data acquisition
screen of ADPSA. Velocity data can either be displayed relative to the ADP (without using the
GPS data) or absolute currents subtracting the vessel speed based upon GPS position data. See
Section 2.4 for more details.
Combinations of command line options
Many of the command line options shown above can be given in combination to increase the
flexibility of the data collection software. For example, the command “ADPSA –cg” combines
the command file and auto start options. When this command is selected, the program will send
the commands specified in the ASCII file USERCONF.CMD to the ADP. It will then
immediately begin data collection with a recording file named based upon date and time. The
command “ADPSA –cgp” adds integrated GPS position data to the above operation. Placing one
of these commands at the end of the AUTOEXEC.BAT file will automatically re-start data
collection in the event of a power failure.