LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting Data in a web frame using Labview

Hi everybody, I was wondering if it's possible to collect data from a web frame using it's source code.

I have included my web frame and an extract of its source code. I hope you can help me to find the way to resolve it.

 

I'm available for any kind of questions 😄

 

Thanks

Download All
0 Kudos
Message 1 of 3
(5,231 Views)

Hello,

 

You have to know how the web page is built, in order to retrieve the requiered data. Here is an example of how you can process. Use a WebBrowser ActiveX control on your front panel, and then use the properties and method exposed by this control. The loop waits for page loading completion. You may have to convert variant data (such as the value of Document) in the ActiveX reference class you need to manipulate.

 

Here in this sample, I just read the content of the <body>'s web page.

 

exampleAccessingWebPageData.png

 

 

Best regards,

Message 2 of 3
(5,200 Views)

Hi thanks for the tip I would like to know if you can help me to stop the refreshment of the web page I've already tried with IWebBrowser2::Quit and Stop, but it doesn't work I use "GoHome" to stop the refreshment

 

Please find included an extract of my Vi

 

best regards

 

Ben

0 Kudos
Message 3 of 3
(5,093 Views)