11-22-2011 01:40 PM
I'm using the VI below for accessing the internet and pulling data from certain websites. The problem is that when I run the VI, it doesn't automatically refresh the data from the websites, so I'm getting old data. I tried using the "refresh" option, but couldn't get it to work without giving me an error. I'm using LabView 7.1.
Solved! Go to Solution.
11-23-2011 12:22 PM
Hello JFrakes,
Here is useful website with information on ActiveX internet web browsing. Attached on this page is an example that utilizes several control buttons including a refresh button.
https://decibel.ni.com/content/docs/DOC-19168
11-23-2011 12:50 PM
Paul-B,
I'm using LabView 7.1 and so it's not compatible with your VI.
The VI I posted earlier has a method called, "refresh." But when I wire it up, it gives me error code 97. Maybe I'm wiring it wrong or need to put it in a loop? Unfortunately, I can't figure it out.
Thanks,
JFrakes
11-28-2011 06:20 PM
Hello JFrakes,
Here is a screen shot of the refresh event structure from LabVIEW 2011. You can try to replicate this or structure your refresh button around this example.
Hope this helps.
11-29-2011 12:51 PM - edited 11-29-2011 12:58 PM
That helped. But I had to add the time delay of three seconds in each frame of the sequence structure to prevent the error. It refreshes the page each iteration, but after a series of 800 URLs, it takes nearly five hours to run.
11-30-2011 12:53 PM
Hello JFrakes,
Here is an example screen shot for a custom URL.
Hope this helps.
12-15-2011 01:26 PM
I finally solved the problem. You need include a while loop to measure ready state before and after the refresh command.
06-11-2020 07:47 AM
Taking from that example, can you explain what's happening with the refresh timing here?
How can I make it smoother without using timed or parallel loops?
If I leave a web browser open on my desktop it refreshes without drawing a blank (i.e. just the changes are updated rather than the whole page). Is that possible?
Many thanks
Graham