LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display a web page on the front panel?

Hi,

What I would love to be able to do is to be able to display a specified web page e.g. www.google.com on one half of the screen and to be able to display some controls and indicators on the other half. Has anybody seen this done before?

Thanks,

Ken
Message 1 of 9
(8,283 Views)

Ask and you shall receive...

If you're using windows, place an ActiveX container from the containers palette on the FP, right click and select Insert ActiveX object.

Find the Internet Explorer object (it may be called Microsoft Web Browser) and use property and invoke nodes to load the URL you want.


___________________
Try to take over the world!
Message 2 of 9
(8,275 Views)
Hello.
 
1. Place ActiveX container on front panel.
2. Select ActiveX class as Microsoft Web Browser
3. Use Property node and Invoke node of Application control palette to control ActiveX object.
 
Look at attachment.

Jack
Win XP
LabVIEW 6.1, 7.0, 7.1, LabWindows/ CVI 7.1
Let us speek Russian 🙂
Message 3 of 9
(8,272 Views)

As said the activeX web browser control is a great tool and is one of the easier activeX objects to use since it has few properties and methods.  I have used the web browser as a way to display more complex instructions on the screen, where you can load complex html files as graphics in a transparent web browser frame.  I only wish NI would provide a LV native web-browser allowing for platform independents, especially with the migration to new platforms like embedded processors.

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 9
(8,255 Views)

Is there a way to remove the scroll bars from the Microsoft Web Browser ActiveX object?  I looked through all of the properties and methods and couldn't find a way to do it.  There must be a way considering there are properties for the width, height, and resizability.

Thanks,
Ames

0 Kudos
Message 5 of 9
(8,157 Views)
I figured it out.  <body scroll="no"> Thanks!  Ames
0 Kudos
Message 6 of 9
(8,153 Views)


@falkpl wrote:

I only wish NI would provide a LV native web-browser allowing for platform independents, especially with the migration to new platforms like embedded processors.

Paul


This is not very likely happening. Writing a webbrowser control is a huge project in itself and one you can't really tackle to the satisfaction of every possible user. With all the possible extensions to the http protocol such as encryption for security related appications, Java, and all kinds of plugin integration, official HTTP and Microsoft and others HTTP flavors differences, you are bound to create a control that will always fail some users. Companies have tried developing webbrowsers not doing anything else and have mostly failed. A web browser implementation by NI would have to be much more limited than any of the others out there and still might slurp up half of the LabVIEW developer crew, who could do many more interesting things really related to LabVIEW instead.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 7 of 9
(8,132 Views)
I have no need for web browser, but I don't agree with Rolf Kalbermatter. It's true that you (NI) cannot write a web browser of your own. It's too large a project and it's not a core comepetence area of NI. But in these situations companies normally license technology from those companies that work in the area. I suppose it wouldn't be such large a problem to license for example Firefox browser and mozilla UI engine to be a separately priced labview toolkit. That would bring support for mozilla UI discription language to labview as well (Is it XUI?) This XUI(?) would allow one to go beyond labview native front panel objects on platform intependent manner.
--
Tomi Maila
0 Kudos
Message 8 of 9
(8,130 Views)


@Tomi M wrote:
I have no need for web browser, but I don't agree with Rolf Kalbermatter. It's true that you (NI) cannot write a web browser of your own. It's too large a project and it's not a core comepetence area of NI. But in these situations companies normally license technology from those companies that work in the area. I suppose it wouldn't be such large a problem to license for example Firefox browser and mozilla UI engine to be a separately priced labview toolkit. That would bring support for mozilla UI discription language to labview as well (Is it XUI?) This XUI(?) would allow one to go beyond labview native front panel objects on platform intependent manner.


There are quite a few issues with this. Firefox and Mozilla are both owned by the Mozilla Foundation. But as an Open Source project there are literally thousends of copyright holders on that code. I'm not familiar with the particularities of the Mozilla Open Source license and don't know if Mozilla ever has granted a license to a third party to integrate its code base into a commercial project and if it is likely to do that again, but I would bet that the legal issues involved with something like that are huge.

Also just because you integrate that engine into LabVIEW, there is no guarantee that XUI would be available in LabVIEW as well, actually I'm pretty sure that wouldn't be possible without completely redesigning the current LabVIEW control widget library and its code, since they are all completely implemented by LabVIEW itself. Besides I'm not sure what added value such a widget library would give in respect to the currently available controls in LabVIEW but it certainly couldn't replace them as it misses quite some LabVIEW specific controls.

Then there is the fact that LabVIEW 8 is already 17MB just for the executable. Adding even just the Firefox engine without to much extras would blow it up for maybe another 5 MB and would require quite a few external DLLs too which need to be distributed with every single application. And integrating it in LabVIEW directly would als mean you can't upgrade to the newest version of Firefox if a serious bug is found.

Last but not least there is a Mozilla ActiveX control which does allow you to integrate the Mozilla Browser (I think no such thing for Firefox currently exists) into a LabVIEW front panel through the ActiveX node just as you can embed the MS IE. I'm not sure how you could embed this on other platforms. There unfortunately isn't a common and widely accepted and supported standard such as ActiveX for other platforms. But embedding really is the only way to integrate a thing like a web browser into other applications. Adding it directly to the code base has simply to many legal and technical issues to have a chance to be a success.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 9 of 9
(8,124 Views)