02-13-2010 06:37 AM
I'm using LabVIEW 8.5 and I'd like to read a one-line unformatted text file stored on a web site (example: www.text.com/test.txt).
I have found that I can't do that using the standard Read from Text File subVI; is there a better way?
Thank you for your help.
Solved! Go to Solution.
02-13-2010 08:47 AM
02-13-2010 10:00 AM - edited 02-13-2010 10:01 AM
Don't forget to form the entire url (e.g. starting with ftp or http).
You might also have to append the string [text] to the end of the URL. Check the help.
Here's a snippet:
02-13-2010 10:22 AM
Hey, that works far better than what I had so far... this version gets rid of the quotation marks at the beginning and end of the data.
Thank you!
03-23-2011 03:18 AM - edited 03-23-2011 03:27 AM
Hi,
I tried to read a .txt file like you suggested, bu i get en error: 1181 Protocol not recognized by LV. The file i am trying to read is on a https:// . Can that be the problem? I am using LV 2010.
03-23-2011 07:06 AM
Datasocket does not support https, to the best of my knowledge.
03-23-2011 12:37 PM
Is it possible somehow to read a .txt file from https:// ? Anybody an idea ? 🙂
03-23-2011 01:07 PM
The "easiest" will be to use ActiveX and access the Internet Explorer ActiveX interface for this.
I would love to point you to a library I did last year on Lavag.org, but it needs some more work to be of use to most people.
03-23-2011 01:10 PM - edited 03-23-2011 01:11 PM
LabVIEW 2010 has an SLL VI that can be used with the HTTP GET VI: http://zone.ni.com/reference/en-XX/help/371361G-01/lvcomm/http_client/
Can't say that I've ever tried this, so I don't know if it will work for you. Not sure which security protocol it uses, though.