Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Read GPS Time, Position, Velocity, and Course Heading

22 ratings | 3.95 out of 5
Print

Downloads

Filename: gpsscreenshots.zip
Requirements: View

Filename: readgpstimepositionvelocity.llb
Requirements: View

This example application decodes the most common NMEA-0183 sentence transmitted by GPS receivers, the $GPRMC sentence. The course track is plotted on the screen, while the ground speed and course heading are also displayed.

The "Read NMEA GPS SubVI.vi" returns time, position, ground speed, and magnetic variation. This subVI initializes the serial port on first call. On subsequent calls, the initialization is skipped. Always use the Stop input when stopping the subVI so that the serial port connection is closed. This subVI is suitable for use in LabVIEW Real-Time applications (normal priority loop), and uses the VISA serial API.

In your GPS interface configuration, use the "NMEA OUT" setting and set the baud rate to the standard 4800 bps setting. Connect your GPS unit to the computer or LabVIEW Real-Time target serial port using a PC Interface Cable, available from the GPS vendor.

This example should work with any NMEA 0183 compatible GPS unit. The example was developed and tested using a Garmin eTrex GPS unit.

LabVIEW front panel and block diagram screenshots are also attached.

Note: ConsumeBefore.vi is part of the Instrument I/O Assistant (installed via the Device Driver CD with the GPIB drivers).

Requirements


Filename: gpsscreenshots.zip

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Serial, Compact FieldPoint, PXI/CompactPCI, CompactRIO, Real-Time (RT)
Driver: NI-VISA 3.1

 
Filename: readgpstimepositionvelocity.llb

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Serial, PXI/CompactPCI, Compact FieldPoint, CompactRIO, Real-Time (RT)
Driver: NI-VISA 3.1

 
22 ratings | 3.95 out of 5
Print

Reader Comments | Submit a comment »

missing file
Where do I get the ConsumeBefore.vi file that is required to run this thing ?
- chris stevens, oxford university. chris.stevens@eng.ox.ac.uk - Nov 8, 2007

missing VI
Downloaded the library file, and when I loaded it up, it came up with a missing vi, comsmebefore.vi. Can anyone help with this. Also I want to run this under labview realtime. Is this possible
- tom.massey@esldefence.co.uk - Jun 19, 2007

no differential setup
I wanted to know if there was vi file for differenial GPS setup..since this is for a stand alone GPS system...
- innovator81, wsu. skrao81@gmail.com - Feb 25, 2006

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).