Problem:
I have two data sources, depth sounder connected to COM4, 4800bps, 7 data bits, no parity, 1Hz, $DPDPT (with Aten USB), and GPS (Geomax Zenith20+Getac236) connected to COM3, 9600bps, 8 data bits, no parity, 1Hz, $GPGGA.
I want to write a GPS location and depth to an Excel-compatible file without additional unwanted data.
Preliminary requirements:
- Advanced NMEA Data Logger Enterprise, or a trial version (download).
- Local database data export plugin.
- You've configured a data parser as described in another tutorial.
Solution:
Configuring a data export plugin
1. Open the existing configuration for editing using the following menu item: Options → Manage configurations → Your configuration → Modify.
2. Enable the "Local database" plugin on the "Modules → Data export" tab (fig.1). FYI: you can use multiple data export plugins at the same time.
Fig. 1: Enabling the Local database plugin
3. Select the output type in the "Local database type" fields and configure file parameters, as shown in figure 2. The help file for this plugin contains a detailed description of all options.
Fig. 2: Parameters of a CSV file
4. Switch to the "Export options" tab and adjust some formatting settings for timestamps and numbers.
Fig. 3: Formatting settings
5. On the "Columns order" tab (fig. 4), you can define an order of the necessary NMEA values in the resulting CSV file. If you cannot find an NMEA value in a drop-down list with parser items, you can type the name of the necessary variable manually. We use the following parser items:
- Timestamp → DATE_TIME_STAMP.
- Latitude → GGA_LATITUDE_DEG.
- Longitude → GGA_LONGITUDE_DEG.
- Depth → DPT_DEPTH.
Fig. 4: NMEA values
6. Save the changes by clicking the "OK" button.
7. Wait for incoming data and check the result in the configured folder. Please, note that the plugin updates the file with a delay of 10 seconds.