Jump to content
Sign in to follow this  
Gribo

Google maps <-> LabView via websockets

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

Share this post


Link to post
Share on other sites

Should I create a new entry into the un-certified repository? It will make it easier to update the file.

Share this post


Link to post
Share on other sites

Hey! I am trying to use your web socket example. When I run the program, it doesn't show any map. I have never used web-sockets before so may be I am doing something wrong. I need to be able to show flight of a weather balloon on google maps. I am getting getting GPS coordinates from serial port.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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