Example Code

NMEA - GPS library

Code and Documents

Attachment

Download All

Here is the start of a LVLIB for handling (parsing) NMEA GPS information. There is a long list of NMEA messages (http://sv.wikipedia.org/wiki/NMEA) which can be parsed but this version only includes parsing of following messages:

  • GPGGA – Global Positioning System Fix Data
  • GPRMC – Recommended Minimum Specific GPS/TRANSIT Data
  • GPVTG – Track Made Good and Ground Speed

I will make updates to this LVLIB asap to include more message parsing.

This software is open for anyone to use, so feel free distributing this .

Best regards,

Marcus

______________________________________________

Marcus Törndahl (System Architect)

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
User002
Not applicable
on

Works perfectly on a 66 channel 5Hz GPS reciever connected to a TTL/RS232 converter and mated with a sbRIO9606:

https://www.sparkfun.com/products/8975 (GPS)

https://www.sparkfun.com/products/449 (TTL/RS232 Shifter)

Br,

/Roger

jonahv
Member
Member
on

Is there a version of this out there compatible with Labview 2009?

MarcusTörndahl
Member
Member
on

I have resaved the library to LV2009

______________________________________________

Marcus Törndahl (System Architect)
jonahv
Member
Member
on

Thank you!!

Mr_J
Member
Member
on

Hi Marcus,

i made some small mods see New NMEA - GPS library

JosefinS
Member
Member
on

Hi Marcus,

 

I have two questions:

1. Is there a version of this that does not require the Robotics module?

2. Is there a version that works for LabVIEW 8.6?

 

Thank you!

/Josefin på "elmät"

JJideani
Member
Member
on

Hi Marcus,

 

Thanks for this library.  I'm trying to use it to get speed information from a NaviLock GNSS receiver.  The receiver generates "$GN..." messages and not "$GP..." messages, so I had to include that option in the 'IF' block in the example VI and it seems to work - it at least is able to populate the GPRMC, GPGGA and GPVTG clusters correctly.  However, it seems like the speed readings don't correspond to actual speed and the readings only update roughly every 8 seconds.  Any idea why?  With U-blox's u-center NMEA parser I am able to get live speed updates roughly every second.  Is there something I'm missing?

 

Thanks.

JJideani
Member
Member
on

Nevermind, its working correctly now.  I just had to reduce the millisecond timer in the serial communication loop to 10 milliseconds.

Contributors