Jump to content

Google maps <-> LabView via websockets


Gribo

Recommended Posts

Hello,

 Following my previous attempt with Google maps, Here is a websocket based link between LV and Google maps.

 

Websocket class by S.Marlow http://evexiallc.com/index.php

JSON API by drjdpowell

 

Javascripts and demo application are based on the Webpanel demo application.

 

Instructions:

1. Obtain a Google maps API key. 

2. Edit the WP_Googlemaps.html and add the key to the relevant script tag.

3. Start the demo vi (google maps demo.vi)

4. Open the WP_Googlemaps.html with a modern browser.

 

I have tested it with Chrome and Safari on iPhone 4.

 

You might have to point to the correct path of some VIs, they are included in the vi directory.

gmaps_websockets_LV2013.zip

Edited by Gribo
Link to comment
  • 1 year later...
  • 6 months later...

Hi, great program - exactly what i was looking for to get full google maps functionality in Labview.

I'm trying to use this to track an autonomous vehicle using co-ordinates from its GPS sensor. I've tried reusing the case structure to have the vehicle's co-ordinates center the map, and have a polyline of its path from beginnning of movement, but I've had no success so far.

Do you think the best way to do this would be a pair of while loops for 1) Updating center co-ordinates, and

                                                                                                                 2) Sending co-ordinates every 2s to create a continually updating polyline

 

to replace the case structure? ideally i want to keep some of the case structures manual inputs.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.