crelf Posted October 13, 2003 Report Share Posted October 13, 2003 See attached VI 1 Quote Link to comment
crelf Posted October 13, 2003 Author Report Share Posted October 13, 2003 You'll probably need this file too... Download File:post-10-1073107794.llb Quote Link to comment
Jim Kring Posted November 3, 2003 Report Share Posted November 3, 2003 Chris, This is nice. It also supports FTP URLs. However, I tried it on Linux and I get Error 1181 - "Protocol unrecognized by DataSocket" -Jim Quote Link to comment
Michael Aivaliotis Posted January 10, 2004 Report Share Posted January 10, 2004 Yes, this can be used on any html page that you want to get off the web. Once the data is received you can just parse out the important content. I made a VI that gets the nymber of registered LAVA forum users. I attached an image that shows how to do this. As you see, once the html page is retrieved, the rest of the process is just plain text string manipulation. Quote Link to comment
Jim Kring Posted August 4, 2004 Report Share Posted August 4, 2004 It should be noted that HTTP and FTP are only supported on Windows :thumbdown: Quote Link to comment
sam Posted August 4, 2004 Report Share Posted August 4, 2004 And here is a spell checker. I for one need a spell checker. It's quick and dirty, and I haven Quote Link to comment
sam Posted August 5, 2004 Report Share Posted August 5, 2004 I have added the Synonyms, Related Words, and Contrast to the spell check. Any one interested I can upload it, or drop me a line. -Sam Quote Link to comment
John Lokanis Posted August 19, 2005 Report Share Posted August 19, 2005 Yes, this can be used on any html page that you want to get off the web. Once the data is received you can just parse out the important content.I made a VI that gets the nymber of registered LAVA forum users. I attached an image that shows how to do this. As you see, once the html page is retrieved, the rest of the process is just plain text string manipulation. 285[/snapback] It should be noted that unless your URL ends with ".html" then you may need to add " " (note the space) to your URL string to get this to work right. Maybe ftp sites need something simular to get them to work?-John Quote Link to comment
Megavolt Posted June 15, 2006 Report Share Posted June 15, 2006 It should be noted that unless your URL ends with ".html" then you may need to add " " (note the space) to your URL string to get this to work right. Maybe ftp sites need something simular to get them to work?-JohnI use the " [text]" to retrive .rss and .xml pages as big strings. The xml pages are very easy to parse. Quote Link to comment
rberger Posted November 22, 2006 Report Share Posted November 22, 2006 Chris,This is nice. It also supports FTP URLs. However, I tried it on Linux and I get Error 1181 - "Protocol unrecognized by DataSocket" -Jim My app will have to read a web page & parse HTML contents continuosly. Do you folks suggest opening a datasocket session, reading the contents and explicity closing the datasocket connection with each loop iteration? Thanks Robert Quote Link to comment
crelf Posted November 22, 2006 Author Report Share Posted November 22, 2006 My app will have to read a web page & parse HTML contents continuosly. Do you folks suggest opening a datasocket session, reading the contents and explicity closing the datasocket connection with each loop iteration? I don't think so - like all reference-based programming, you should open and close the reference outside of the loop. That said, as the connection is completely under your control (ie: remote can close it), I'd also check the connection inside the loop if you find that you're having difficulty reading the page. Quote Link to comment
rberger Posted November 22, 2006 Report Share Posted November 22, 2006 I don't think so - like all reference-based programming, you should open and close the reference outside of the loop. That said, as the connection is completely under your control (ie: remote can close it), I'd also check the connection inside the loop if you find that you're having difficulty reading the page. Lets say one opens a datasocket connection before entering the while loop. The datasocket read VI has a polymorphic input as the current open connection or URL input. What if within the SAME connection I want to view different HTML page after each iteration of the while loop? You would think I could just pass a string input denoting the URL but the read VI wants a connection input with each iteration of the loop if opening a datasocket connection before entering the loop. So do I just use the read VI in the loop passing a different URL string input & assume LabVIEW is smart enough to close the connection after existing the VI so I don't get memory leak? Quote Link to comment
crelf Posted November 24, 2006 Author Report Share Posted November 24, 2006 Lets say one opens a datasocket connection... Could you please mock-up a VI ro two to explain what you're asking? It'd be a whole lot easier to discuss what you're asking with something graphical to work with Quote Link to comment
hannibal Posted April 26, 2007 Report Share Posted April 26, 2007 I think we can place the Datasocket open inside the loop. It doesn't affect much. Quote Link to comment
dbyers3 Posted February 22, 2008 Report Share Posted February 22, 2008 QUOTE(crelf @ Oct 12 2003, 06:15 PM) See attached VI Crelf, I am missing a sub vi "Parse Filename Extension (Polymorphic).vi". to run this main vi "Displaying_and_image_from_a_web_page.vi. Also, do you think something simular to this would work to grab from a network stream like VLC Media Player? http://www.videolan.org/ Quote Link to comment
crelf Posted February 22, 2008 Author Report Share Posted February 22, 2008 QUOTE(dbyers3 @ Feb 21 2008, 11:01 AM) I am missing a sub vi "Parse Filename Extension (Polymorphic).vi". to run this main vi "Displaying_and_image_from_a_web_page.vi. It's here: http://forums.lavag.org/index.php?showtopi...dpost&p=204 QUOTE(dbyers3 @ Feb 21 2008, 11:01 AM) Also, do you think something simular to this would work to grab from a network stream like VLC Media Player? http://www.videolan.org/ I've only tested it with static files, I'm not sure it'd work with a stream... Quote Link to comment
san26141 Posted July 8, 2008 Report Share Posted July 8, 2008 QUOTE (crelf @ Oct 12 2003, 06:15 PM) See attached VI I can't open the vi (http://post-a53-Displaying-an-image-from-a-web-page.vi' rel='nofollow' target="_blank">Displaying_an_image_from_a_web_page.vi ) or image. An "error" pops up saying that they may have been moved or deleted. Where can I download this vi if it is still available? Thanks Quote Link to comment
LAVA 1.0 Content Posted July 8, 2008 Report Share Posted July 8, 2008 QUOTE (san26141 @ Jul 7 2008, 09:26 PM) I can't open the vi (Displaying_an_image_from_a_web_page.vi ) or image. An "error" pops up saying that they may have been moved or deleted. Where can I download this vi if it is still available?Thanks Several options: Crelf removed it It got lost in the archives of the internet LabVIEW has sent a bot to the LAVA database removing this attachment But the code is quite simple, and you can easily recreate it from the images supplied. Oops the image is gone too. A similar piece of code is given on the dark side. Ton Quote Link to comment
crelf Posted July 8, 2008 Author Report Share Posted July 8, 2008 QUOTE (san26141 @ Jul 7 2008, 03:26 PM) I can't open the vi (Displaying_an_image_from_a_web_page.vi ) or image. An "error" pops up saying that they may have been moved or deleted. Where can I download this vi if it is still available? I tried updating the link, but it isn't working. Here's another copy: Download File:post-181-1215466225.vi Edit: OK - that one doesn't work either. Reported to the admin. Quote Link to comment
iowa Posted September 11, 2008 Report Share Posted September 11, 2008 Keep receiving "Sorry, some required files are missing, if you intended to view a topic, it's possible that it's been moved or deleted. Please go back and try again" when attempt to download VIs from posts 1 & 2 or open pictures.. Would like to have these VIs.. looks soo interesting. Thanks, Alex Quote Link to comment
crelf Posted September 19, 2008 Author Report Share Posted September 19, 2008 QUOTE (iowa @ Sep 10 2008, 12:51 AM) Keep receiving "Sorry, some required files are missing, if you intended to view a topic, it's possible that it's been moved or deleted. Please go back and try again" when attempt to download VIs from posts 1 & 2 or open pictures. Here's a quick example that I just threw together: Quote Link to comment
Tham Posted March 3, 2009 Report Share Posted March 3, 2009 hi.. i've tested your .vi.. it worked perfectly fine for my requirements except for a bit minor problems.. i can't seems to identify where the problem lies as i'm still pretty new at labview.. an example of the website would be: test link the profile picture cannot be loaded by the application and the one with little bars as well.. only the parking lots picture could be loaded.. i was wondering if you could help me solve this mystery? i really cannot find out the reason behind this phenomena.. thanks in advance Quote Link to comment
crelf Posted March 3, 2009 Author Report Share Posted March 3, 2009 QUOTE (Tham @ Mar 2 2009, 10:43 AM) an example of the website would be: http://amp.ece.cmu.edu/people/Qi/' rel='nofollow' target="_blank">test link the profile picture cannot be loaded by the application and the one with little bars as well.. only the parking lots picture could be loaded.. I can't get through to your site at the moment - it's not responding - so I can't really give you an authorative answer. Check whether the images you can't download are actually images, and not links to somewhere else, or embedded applications (like flash). Quote Link to comment
Tham Posted March 3, 2009 Report Share Posted March 3, 2009 i've tested the link again.. it's still working.. i right click and select "copy image location" to get the url to paste it there and right click at "view image" and copy the url at the top of my browser and i've obtained different results. "copy image location" Profile picture failed, 2nd picture failed and the parking picture fail as well(though yesterday seems to be working even though i made no changes "view image" and use the url: profile picture worked but the rest failed.. thanks in advance Quote Link to comment
crelf Posted March 4, 2009 Author Report Share Posted March 4, 2009 QUOTE (Tham @ Mar 2 2009, 07:17 PM) i've tested the link again.. it's still working.. i right click and select "copy image location" to get the url to paste it there and right click at "view image" and copy the url at the top of my browser and i've obtained different results. I have no idea what the problem is - I just used the profile picture ( http://amp.ece.cmu.edu/people/Qi/05101803.jpg ) in the VI and it worked fine. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.