From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-12-2011 07:46 AM
I am trying to learn how to download data from the web, but I'm afraid I haven't gotten very far. As an example I would like to download data from a CSV file. I am trying to use "URL Get Document.vi" because it seemed like the most straightforward option.
But I get the following error message: (Untitled 3.vi is the name of my VI)
Possible reason(s):
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
I tried using "http://finance.yahoo.com/d/quotes.csv" and even "finance.yahoo.com/d/quotes.csv" but it still returns the same error.
What gives?
LV 2009
Win XP
05-16-2011 12:11 AM
I ran this function using just "http://finance.yahoo.com/d/quotes.csv" and got a different error:
Hmm, if the connection was really closed on the other end there might be something about the way that yahoo serves up that csv file. Maybe try to find another csv file on another site and see if it gives you the same error when trying to download it.
05-16-2011 05:44 PM
I am getting the same error for very small webpages, less than 1024 bytes.
If you stick the 'No EOC Error' vi in the code of the 'URL Get HTTP Document' vi like this, it will work just fine.
The code reads a header first, and it assumes that the document is always larger than 1024 bytes, as it reads a header of 1024 files and creates a error 66 if the document is less.
-Nils
02-10-2012 01:42 PM
Hi,
I also get the error 66 when trying to download an xml-file from 127.0.0.1 . Only if the file is very small it works. What can be done about this error ?
02-13-2012 05:50 PM
Hey tibet,
You said you could only get very small files to work when you are trying to download an xml-file from the local host. Do you know the maximum size that you can download without getting the error ( for example 1024 bytes)? Can you post a code snippet of what you are trying to do when you are downloading the xml-file so I have an idea of what you are doing?
Also, have you looked at TCP read function in the TCP Buffered Read.vi which is a subVI of the URL Get HTTP Document.vi to mess around with the number of bytes getting read?
zone.ni.com/reference/en-XX/help/371361H-01/lvcomm/tcp_read/
Regards,
02-14-2012 06:13 AM
I've found an old post where someone suggests using datasocket:
Anyhow it'll we very interesting to find out why we got the error....
Marco