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?

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 6월 27일
편집: MathWorks Support Team 2024년 6월 27일

3 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

제품

릴리스

R2017a

태그

Community Treasure Hunt

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

Start Hunting!

Translated by