View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Article: Using MATLAB with External Hardware (Garmin GPS example)

4.0 | 3 ratings Rate this file 8 Downloads (last 30 days) File Size: 2.49 KB File ID: #15010 Version:

Article: Using MATLAB with External Hardware (Garmin GPS example)



15 May 2007 (Updated )

Configuring and controlling external hardware with MATLAB

| Watch this File

File Information

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.
This MATLAB example is featured and explained in the May 2007 MATLAB Digest article called "Configuring and Controlling External Hardware in MATLAB" authored by Trent Jarvi of The MathWorks. This article is available at:
Learn more about using MATLAB with a wide array of external hardware such as serial devices and instruments at the following page:

Required Products Instrument Control Toolbox
MATLAB release MATLAB 7.4 (R2007a)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
15 Jan 2010 sarah noman

hello .. i'm working on this subject " Using MATLAB with External Hardware " ..

the files can't be downloaded !

can anybody do something .. cos i need it as soon as possible ..


Comment only
18 Jun 2009 Florentino Ruiz

y como haría para que este adquiriendo las lecturas en tiempo real, es decir, que siempre me este dando los datos en cualquier momento??????

Comment only
05 Mar 2009 Syed Noman Hussain

18 Dec 2007 Kevin Alley

Is there a simulink equivalent for reading and parsing NMEA strings from a Garmin or other GPS unit?

Comment only
07 Jun 2007 Oleg Zariasnki

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:
while isempty(strmatch('$GPRMC',data))
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.

01 Jun 2007 ramon vazquez

01 Jun 2007 siti sendari

i want to learn it

Comment only
17 May 2007

- Updated description and download material.

10 Dec 2014 1.3

Adding BSD license.

01 Sep 2016

Updated license

Contact us