02-14-2006 10:12 AM
02-15-2006 12:21 PM
If I understand you correctly, you are hosting a webpage in a front panel ActiveX container, and you want to obtain certain information from the webpage.
This is possible using ActiveX calls. To get access to the HTML document in the container itself, along with all of its text and applets, etc, you need to reference the Document child item from a property node. This item is variant, so you need to use Variant to Data with a ActiveX refnum constant set to MSHTML.IHTMLDocument2 wired to the type. At that point you can access information about the HTML page itself, such as the body's text and so forth.
I'm attaching a simple example that should help you get started. It's written in LabVIEW 7.1. Good luck!
02-17-2006 01:10 PM
02-17-2006 01:21 PM
Hi again!
Yes, you can directly access the html source code. This is extremely easy in LabVIEW using the DataSocket VIs. DataSocket is a general high-level network communication platform that allows LabVIEW to transmit and receive data between computers and other applications. One of its many uses involves reading html source code from web servers.
I've attached an example. Pretty easy, isn't it?
03-06-2008 09:43 PM
Hmm...
I used this method since Labview 6.0, but I remember it doesn't work with URL ends with ".html"
Try to open URL http://www.x-rates.com/d/KRW/EUR/data120.html for example and you'll see ERROR 1184
But if you try http://www.x-rates.com everything works fine. Can you guess why?
Of course Activex method is little more complex but works everytime.