LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1184 extracting website data

Hi 

 

I have a code which takes thermocouple temperatures from a DAQ every 5 minutes and also takes weather data from this website at the same time: http://willowsweather.1066.net

 

It writes all of the data to a TDMS file. The only problem is that occasionally, and seemingly randomly, I get this error code which stops the writing to TDMS

 

I'm not sure what's causing the problem so any suggestions would really help, it works fine most of the time and I have previously reached TDMS file sizes of 2600kb before the error is produced so I don't know what causes it...

 

Thanks

Joe

0 Kudos
Message 1 of 9
(4,672 Views)

Hi Joe,

 

I don't know what causes it...

Well, then it's time to start debugging!

And the error source is named in the error dialog box, you just need to read it.

 

And handling the error (apart from just displaying annoying dialog boxes) would be a good idea too!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(4,648 Views)
It would be helpful to see some code. Also, given that the problem apparently relates to an address, what was the address being accessed when the error occurred?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 9
(4,636 Views)

Hi,

 

Here is the code. I didn't write this code but one of the first things I did when I started using LabVIEW was try to annotate it, so a lot of the annotations need updating as they are incorrect!

 

Pool Measurement System is the main VI. On the block diagram, go to the "Take All Readings" case, then the blue coloured Weather Data VI. This is a messy VI, sorry! The error is then occurring inside the white Read Website VI.

 

The URL http://willowsweather.1066.net/ is shown in the code, if you can suggest a better way of accessing this website through LabVIEW code then please do! This is my only experience of taking data from a website with LabVIEW and is the only part of this project/VI that was written by me.

 

The website is actually operated by a weather enthusiast who I have not been in contact with, so of course one option could be down time on his site. I have checked this out using a connectivity monitor and everything seems OK on his end for now.

 

Thanks for your help,

Joe

0 Kudos
Message 4 of 9
(4,610 Views)

Hi 

    The error seems to be generated by the reading the HTML data from the website. Maybe your reading the data too fast, before the website responds, give a delay.

 

Other ways of reading data from a website would to use HTTP client toolkit.  

 

(the vi ICON was nice)

regards

V.Senthil

Message 5 of 9
(4,603 Views)
I agree with the other poster's comment. There are several NI technologies that are built on top of lowerlevel standard interfaces. Sometimes (as in the case of VI Server) it works well, other times -- not so much.

If you are wanting to extract data from a webpage, the HTTP client VIs are really the way to go. They return the page data a HTML which, assuming the page is designed halfway reasonably, is easy to parse.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 9
(4,593 Views)

Hi,

 

Recently I have been busy so I can't update the means of taking the website data, but thank you that is a good idea. I tried to run another scan and it ran for a few days, then received error 56 - the network operation exceeded the user-specified time limit. I think that your suggestion of giving a delay will solve this issue.

 

Thank you for your help, when I have the time I will update things and get back to you :)!

 

Joe

0 Kudos
Message 7 of 9
(4,563 Views)
When you receive this kind of error you shouldn't think,"delay". Instead you should be thinking,"retry".

Error 56 is one of two or three different errors that can occur sporadically, even under the best of conditions. When one of these errors occur, retry the last communication. If the retry works, "no harm, no foul". You go on -- though for gauging network reliability you might want to maintain a counter recording when the errors happen.

The basic idea is if the error happens 3 times in a row, then you report the error.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 8 of 9
(4,550 Views)

Hi, 

 

I had a chance to make some updates, I did as you suggested and included an error handler which will retry if Error 56 or 1184 occurs. It has been running a scan for about 4 days now with no problems! After a 3rd failed attempt the program will terminate because after that long it probably means our connection is down. 

 

Thank you both for your help!

 

Joe

0 Kudos
Message 9 of 9
(4,487 Views)