This MATLAB® example shows you how to configure and control external hardware in MATLAB. Specifically, we show how to use MATLAB to communicate with a Garmin® handheld Global Positioning System (GPS) receiver with an RS-232 serial interface.
MATLAB supports serial devices including RS-232 using the Instrument Control Toolbox™. In the article, we describe how to use a graphical user interface called TMTool to locate, configure, and control the hardware without writing MATLAB script. We also show how to create drivers to incorporate lower level commands.
Is there a simulink equivalent for reading and parsing NMEA strings from a Garmin or other GPS unit?
07 Jun 2007
The good job.
I have made the same script, but using differen NMEA word and obtain information about time and velocity too.
The codes modifies strings looks like:
data = fscanf(obj1);
if (NS == 'S')|(NS == 's')
if (EW == 'W')|(EW == 'w')
And so one.
For displaying there is enough to show simply Latitude and Longitude with N or S, E or W, but to calculation better transfer coordinates.
The same is with time.
I know, that my code is not optimal, but it reads only required information.