LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a html file at a specified url

I have a html file at a given URL ( for example: http://etp.free.fr/1.htm)
This file contain only a numeric value
I want to read this value in order to use it in my VI

How could I do ?

Thank you for your help!

Pascal
0 Kudos
Message 1 of 4
(2,833 Views)
The LabVIEW Internet toolkit has a VI called "Get URL" or "Read URL" that
will return the document in string format.

-Jim

"Pascal Dequick" wrote:
>I have a html file at a given URL ( for example: http://etp.free.fr/1.htm)>This
file contain only a numeric value>I want to read this value in order to use
it in my VI>>How could I do ?>>Thank you for your help!>>Pascal>>
0 Kudos
Message 2 of 4
(2,833 Views)
If you don't have internet toolkit, you can do something
like the attached vi. after you get the data, you have to parse it
to extract your values.
ozan...


"Pascal Dequick" wrote in message
news:XnAP5.293$rx.9432@tengri.easynet.fr...
> I have a html file at a given URL ( for example: http://etp.free.fr/1.htm)
> This file contain only a numeric value
> I want to read this value in order to use it in my VI
>
> How could I do ?
>
> Thank you for your help!
>
> Pascal
>
>



[Attachment tcp_example.vi, see below]
0 Kudos
Message 3 of 4
(2,833 Views)
> I have a html file at a given URL ( for example: http://etp.free.fr/1.htm)
> This file contain only a numeric value
> I want to read this value in order to use it in my VI
>
> How could I do ?
>
> Thank you for your help!
>
> Pascal


Open a TCP Connection to host etp.free.fr on Port 80. Take a format into
string, wire a string constant to Format string and write "GET %s
HTTP/1.0\r\n\r\n" to it. Connect input one with the URL and write this
to the TCP Connection using TCP Write. Now read TCP answer and close TCP
connection.

thats it!!

chris

--

( o o )
( O )

#
# mailto: harboeck@in.tum.de
# www: www.in.tum.de/~harboeck
# phone: (089) 323 21 21
#
0 Kudos
Message 4 of 4
(2,833 Views)