LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading web page source code using LabVIEW?

Hi,
 
Is there a LabVIEW function that could be used to go off to a web address and save the data within that web page to a txt file or similar?  I've seen that you can upload html reports to an internet address so thought you should be able to do it the other way round but cannot find anything.  I basically want to be able to type in a web address in my LabVIEW program and then the program access the internet and then save the information, to be able to get the source code would be excellent?  Could this be done?  Could even half this be done i.e saving of a web page? If so in what format etc?
 
many thanks
0 Kudos
Message 1 of 4
(3,607 Views)
If you have the Internet Toolkit, there's a VI called "URL Get HTTP Document.vi" that will output the HTML of page given a URL.

If you don't have the Internet Toolkit, I think there's a way to do it using Datasockets. Try searching the forums for more info on that.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 4
(3,600 Views)

Check out the following example at NI KnowledgeBase. I know it is for an image, but once you see it you should be able to modify it for your needs:

How to Display an Image from the Web in LabVIEW

Regards;
Enrique

www.vartortech.com
0 Kudos
Message 3 of 4
(3,595 Views)

Datasocket method has worked a treat....thanks very much!  Exactly what i wanted to get.

Thanks Thanks

0 Kudos
Message 4 of 4
(3,581 Views)