All Cadcorp SIS API Methods

ReplayGpsLog Method

Description

Start or resume the replay a GPS log file.

Syntax

Visual Basic
Public Function ReplayGpsLog( _
   ByVal filename As String, _
   ByVal replayrate As Long, _
   ByVal flags As Long _
) As Integer

Parameters

filename
The name of the GPS log file to replay, or blank to resume after a pause.
 
replayrate
The rate, in milliseconds, to replay the GPS log file, or zero to resume after a pause.
 
flags

Flags setting the NMEA options for receiving data from the GPS device.
There are three NMEA sentences of interest: GGA, GLL and RMC, and a checksum which can be checked.
These are controlled with public constants which can be combined with "OR" to form a single value.

The constants are:

SIS_GPS_NMEA_GGA
SIS_GPS_NMEA_GLL
SIS_GPS_NMEA_RMC
SIS_GPS_NMEA_CHECKSUM
At least one of the first three must be included to start a replay. Use zero to resume replay after a pause.

Remarks

It is not permissible to playback a GPS log whilst connected to a GPS device.

Available: D OD OM

Group:

Example

sis.ReplayGpsLog("C:\myproject\gpslog.txt", 100, SIS_GPS_NMEA_GGA Or SIS_GPS_NMEA_RMC)

Start replaying the GPS log file C:\myproject\gpslog.txt at a rate of 100 milliseconds per entry using the GGA and RMC NMEA sentences only.

sis.ReplayGpsLog("", 0, 0)

Resume replaying a paused GPS log file.