bg

Log NMEA 0183 or AIS Data to CSV and Open It in Excel

Use Advanced NMEA Data Logger to capture a live GPS or AIS feed and write selected values to a CSV file. The examples below export GPS latitude and longitude from a GGA sentence or vessel MMSI from an AIS position report. Use Enterprise or the trial for the export plugin.

1. Connect to the GPS or AIS feed

Click the green + to add a configuration. For a serial or virtual COM port, match the receiver's baud rate and other port settings. For a network feed, choose the TCP or UDP mode that matches the feed and enter the appropriate address and port. Check that complete sentences appear in the data window.

2. Select the sentences and fields to export

Open Modules → Query Parse Filter and click Setup next to NMEA data parser. On the NMEA sentences page, choose one of the examples below. On Common, enable Add date/time stamp to each sentence parsed to include the computer's capture time as DATE_TIME_STAMP.

GPS coordinates from GGA

Select GGA for a GPS fix. For example, the following sentence contains a latitude of 48.117300° N and a longitude of 11.516667° E, rounded to six decimal places.

$GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47

Map DATE_TIME_STAMP, GGA_LATITUDE_DEG and GGA_LONGITUDE_DEG to the first three CSV columns.

Vessel MMSI from an AIS position report

Under AIS VDM sentence, choose the position report types your feed sends, such as VDM1 for the sample below. For own-vessel data, select the corresponding VDO type. Clear the aggregation list for this configuration so each decoded report can produce its own row.

!AIVDM,1,1,,A,15MgK45P3@G?fl0E`JbR0OwT0@MS,0*4E

This example has MMSI 366730000. Map the timestamp and the MMSI field published for the selected report type. If the MMSI field is absent from the export dropdown, use the DDE Server active items list to find its name and enter it manually. See the AIS field selection walkthrough.

3. Write the CSV file and open it in Excel

  1. Open Modules → Data export, enable Local database and click Setup.
  2. Choose Text files (fixed or delimited types) and set File type to Delimited. Set the folder and filename prefix. Choose a field separator such as a comma and enable column names if you want a header row.
  3. On Columns order, add an item for each field. Enter the desired column name and set its Parser item name to the matching field. Set the timestamp and numeric formats under Export options. Use a period for decimal values with comma-delimited output.
  4. Save the configuration and wait for a few messages. Check the CSV in a text editor, then import it with Excel's Data → From Text/CSV command. Select the same delimiter you configured in the logger.
Local database plugin with delimited text, path and field separator settings

Delimited file settings in the Local database plugin

Example output for the GGA sentence, with column labels shown and an illustrative capture time.

timestamp,latitude_deg,longitude_deg
2026-11-23 09:30:00,48.117300,11.516667

Example output for the AIS position report.

timestamp,mmsi
2026-11-23 09:30:05,366730000

If the file stays empty, check that the parser has the right sentence or report type enabled and that the output folder is writable. To process an existing capture, see how to decode a saved AIS file.

Related articles: Log NMEA 0183 or AIS Data to CSV and Open It in Excel