How can I log GPS NMEA strings to a text file?

7 visualizaciones (últimos 30 días)
I have a GPS module (NMEA compliant) connected to a computer via serial (COM) port.
The GPS module is transmitting NMEA strings (as lines of ASCII text) to the computer via a serial COM or virtual COM port:
$GNZDA,180755.000,20,07,2017,,*47
$GPGGA,180755.000,4217.9848,N,07121.0476,W,1,18,0.6,83.6,M,-33.8,M,,0000*5A
$GNRMC,180755.000,A,4217.9848,N,07121.0476,W,0.00,0.03,200717,,,A*61
How can I log the NMEA strings to a text file?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 2024
Editada: MathWorks Support Team el 27 de Jun. de 2024
Please refer to the attached MATLAB example file (GPSLogApp.m, requires MATLAB R2017a), which:
  • creates a graphical user interface
  • shows a list of available serial COM ports
  • connects to the GPS module by using the MATLAB Serial functionality
  • display GGA message data live
  • logs the GPS NMEA strings to a text file

Más respuestas (0)

Categorías

Más información sobre Use COM Objects in MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by