LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to program GPS in labview

Hi,

 

I am new to labview but i have a project to rush for. What I am trying to do is to program a Holux GR-213 USB GPS receiver. The program are to collects the data from the GPS unit and displays it on the front panel of Labview (eg .longitude,latitude, speed and more). I have been trying to look for SCPI for this device by fail to do so. I am too lost and not sure if i am on the right track. any help and suggestion will be appreicate

 

attached is a screenshoot of the software application given provided by Holux.

0 Kudos
Message 1 of 8
(4,835 Views)

You don't want to program your GPS, you want to retrieve data. Most likely your GPS sends out the data in NMEA format.

Search the forums for NMEA.

The data will be sent via a serial connection (RS232, bluetooth, TCP/IP whatever) so uses a VISA connection.

 

If you want to add an image to your post, just upload a PNG or JPEG not a word processing document containing an image (it's the long way around).

 

Good luck,

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 8
(4,829 Views)

Hi TonP,

 

Thank for th reply. However I am still very lost on how I should start with my GSP things, as it is a usb GPS and there isnt any example on usb. Any help or and link can I go to get more understanding will be appreicated.

 

Thank

Lawn

0 Kudos
Message 3 of 8
(4,799 Views)

I assume the USB interface is a serial USB interface so you should be able to address it with VISA.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 8
(4,784 Views)

First thing is to check with the GPS vendor. I have a USB receiver from DeLorme that typically only works with their mapping application. However, from their website you can download a serial emulator application that lets you access it from any program capable of talking to a serial port. Your vendor might be able to provide a similar capability. Once communicating with the device all you have to be able to do is decode NEMA packets - and as has been said - there is code on the forum for doing that.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 8
(4,780 Views)

Вот пример программы для опроса GPS или GPS+ Глонасс.

0 Kudos
Message 6 of 8
(562 Views)

Hi N.Krutikov,

 

you forgot to attach the subVI(s) and you don't follow the very good recommendations on how to handle serial communication!

 

There also seems to be a lot of Rube-Goldberg in your VI:

  • Why do you need FOR loops that only output the value of the last iteration?
  • Why do you set the iteration count to length of string when you could use AutoIndexing?

Why don't you cleanup the block diagram before posting?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(545 Views)

Generally a GPS will output a constant stream of NMEA "sentences". These sentences are nothing but ASCII text in comma separated values. So all you need to do is parse the text of the sentences you are interested in.

 

Here's a document that covers the most popular NMEA sentences 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 8
(506 Views)