Example Code

Simple LabVIEW Web Browser

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Description

Overview:

This VI uses a Microsoft Web Browser ActiveX container to create a simple Web Browser in LabVIEW.  For more information on the Microsoft Web Browser Control, see Microsoft's web site.

 

 

Description:

From the Front Panel you type the URL in a location input and LabVIEW navigates to web page. The VI allows you to navigate back, forward, reload, and search. When you run the VI, you will have File Menu and a History Menu. The file menu contains the same functionality that the buttons can do and the History menu contains a History of all the pages that you have visited in a given session.  The Invoke Node and Property Node functions are used to control the operation of the web browser.  To learn more about ActiveX in LabVIEW check out the Using ActiveX with LabVIEW help file.

 

 

Requirements:

LabVIEW 2012 (or compatible)

Windows OS with Internet Explorer

 

 

Steps to Implement or Execute Code:

  1. Download the "LabVIEW Browser.llb" file
  2. Open and run LVBrowser.vi
  3. To use this browser, you can type in a URL in the location field and then click on the Go button.
  4. You can also use the Back, Forward, Reload and Search buttons. This VI also has a runtime menu which is included in the library. When you run the VI, you will have File Menu and a History Menu. The file menu contains the same functionality that the buttons can do and the History menu contains a History of all the pages that you have visited in a given session.The Help menu will also provide description on how to use the application
  5. To Stop Execution, Click on File>> Stop or Ctrl-T

 

Additional Information or References:

LVBrowser.vi Front Panel

FP.PNG

 

LVBrowser.vi Block Diagram

BD.PNG

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Regards,
Dan King

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

Comments
Guillaume_B
Member
Member
on

ok thank's for this example, it works great but il it possible to do this with a firefox activeX ? thank you for reply

Il a LabVIEW, il a tout compris !
wnx
Member
Member
on

It's a smart example

MichaelChristopher
Member
Member
on

Firefox does not have an ActiveX control. It intentionally does not support them.

escalator
Member
Member
on

For Firefox this might help:

Mozilla ActiveX Control1

 

 

 

 

1Editor note: Broken link removed.

meddeb.safouene@gmail.com
Member
Member
on

Hi,

I am using the block Open URL in Default Browser.vi (Labview 2013). i want after the browser open my URL close it automatically after few seconds . Please can any one help me

BalajiB
Member
Member
on

great and easily explained, thanks.

Is it possible to grab all URLs in a web page that is loaded into this labview browser?

010000
Member
Member
on

Hi,

   Thanks for document. But I can't open pages on instagram . How can I solve this problem ?

A.P._Shepherd
Member
Member
on

Is there a Mac version of LabVIEW Web Browser or something equivalent? Thanks for your help.

mybook
Member
Member
on

 thank you for reply

Is there a example for chrome web browser?
Muyewha
Member
Member
on

I got this error while trying to access a specific address.
Is there a way update Internet explorer on labview or try a different browser?Error.png