LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Read web site using Labwindows/CVI

Hi,
I'm an experienced Labwindows/CVI programmer, however I've only experimented with the data socket examples.
Is it possible to use Labwindows/CVI to develop code that can access data on an existing web page?
Or does it have to be a site that has data socket code running?
 
For example, access www.yahoo.com and read some of the text on the web page and display it in a text box control?
 
I need some help getting started on this.
Thanks,
Kirk
 
0 Kudos
Message 1 of 5
(3,892 Views)

Well, I think your problem will be not only socket programming. Remember that you probably also need to interpret the HTML source code of the Web site to show the contents.

 Did you allready think about using Active-X ro remote control Internet Explorer from your application. Or is this no option for you ?   

0 Kudos
Message 2 of 5
(3,857 Views)
Hello KirkM,

You can use datasocket to access web pages stored local or on a server.  In particular, you can get the html text back from the webpage, and search the text for the particular information you want.  An example which demonstrates how to get the HTML contents of a webpage through datasocket is posted by Chris Matthews on the following thread.

I hope it helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 5
(3,843 Views)
No I hadn't thought of using active X controls, but I'll definately take a look.
I've written a Labwindows/CVI application that uses activex to control Excel to generate some reports.
Thanks for the feedback,
Kirk
0 Kudos
Message 4 of 5
(3,838 Views)

Wendy L,

Thanks for pointing me to the thread with the example code.  I just downloaded it and will take a look.

Kirk

 

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