- 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
How can I log GPS NMEA strings to a text file?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 24 Jul 2017
Edited: MathWorks Support Team
on 27 Jun 2024
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?
Accepted Answer
MathWorks Support Team
on 27 Jun 2024
Edited: MathWorks Support Team
on 27 Jun 2024
Please refer to the attached MATLAB example file (GPSLogApp.m, requires MATLAB R2017a), which:
0 Comments
More Answers (0)
See Also
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!