LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to embed web browser?

Hi there - I am looking to do something fairly odd I think. I have GPS
data coming in through a serial port. I want to plot this data on
Google Maps from within my labview application. Google maps can only be
accessed through a web interface, so I need to embed a web browser in
my labview app that can handle google maps. Also - I need to be able to
call the google maps Javascript functions from the labview program.
This can be done by setting the URL of the browser (for example, type
javascript:alert("hello world"); into your address bar and hit enter).
So I just need to be able to change the URL.

Is this possible? I'm a C programmer mostly and have little experience
with Labview. This will be run on Windows XP systems.

Thanks!

-Mike

0 Kudos
Message 1 of 2
(2,721 Views)

You can embed Internet Explorer in your front panel by placing an ActiveX container on your front panel, right clicking it, selecting Insert ActiveX Object and selecting the IE object from the list (in my computer it's called Microsoft Web Control, but you might have another name).

You can then use property and invoke nodes to call the properties and methods of the object (like the Navigate method, which accepts a URL).

If you have another browser with an ActiveX interface, you can obviously call it as well.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

 


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,711 Views)