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.
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
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>>
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 > >
> 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.