ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the data in a txt file on a web site?

I want to extract the numbers located in txt files on a web site. It's a normal url. Not a ftp.

Does anyone know how to do it?
0 Kudos
Message 1 of 10
(4,356 Views)
TomTurbo;

You can use the DataSockets VIs to perform what you want. The key is to use the expression [text].

If you go to my website VI Security.com and check the Products & Tools section, there is a download called VIs for random.org. Check the VI called "Check Buffer (random.org).vi". If you type the URL of your .txt file you can then extract the numbers.

Regards;
Enrique Vargas
www.visecurity.com
www.vartortech.com
0 Kudos
Message 2 of 10
(4,356 Views)
Thanks Enrique,

I've tried it but I can't make it work.

Nothing happens
http://www2.keck.hawaii.edu/acs/fdc/FDC_K1_2004_10_17_007.txt

Tom
0 Kudos
Message 3 of 10
(4,356 Views)
Hi Tom,
What do you want to extract from the text file??
I wanted to extract an IP address from a pearl script from my FTP server and this was the vi that I used .I dont know if you are trying to do the same?
Here is the vi.It is in LV 7.1
Hope its helps .
Good luck.
ohiofudu.
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 10
(4,356 Views)
Thanks for answering
The web page is full of txt files that I can download manually very easy.
The files are full of measurement data which I want to process.

The VI you have attach is version 7.1 and I have 7

Tom
0 Kudos
Message 5 of 10
(4,356 Views)
Hi Tom,

Have you tried this link:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DC0756A4E034080020E74861&p_node=DZ52000_US?

Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 6 of 10
(4,356 Views)
Tom,

Take a look at the attached VI. I am not sure how you interpret the data but this grabs the data as a 1024 by 169 array and graphs it for you.

Notice I take the URL and add [text] to retrieve the string.
0 Kudos
Message 7 of 10
(4,356 Views)
This is exactly what I want Evan.

I'm only using the evaluation version of LabView which
seems to be 7.0 and it can not run your vi, since it 7.1.

It's really a pity since I want to see this work before I buy it.

Any idea? Could you save it as 7.0 or ?

Thanks
Tom
0 Kudos
Message 8 of 10
(4,356 Views)
Tom,

Here is the VI. If it doesn't come through, all you need is a Datasocket read, and the url is http://(your url)[text] The text portion being the key. I then just sent the response throught the spreadsheet string to array function.
0 Kudos
Message 9 of 10
(4,356 Views)
Thank you so much Evan.

It works fine

Tom
0 Kudos
Message 10 of 10
(4,356 Views)