03-23-2016 07:50 PM
Hello,
I am trying to make a simple VI where I get the digital value of a microcontroller port updated on a web server. I used the GET VI of HTTP Client palette but it only gets the body of the web server once so when I drop the port from 1 to 0 for example it didn't appears on LabVIEW.
That's pictures of how I did it and the VI file is attached.
Probably it's caching but I don't have idea how to solve it, can anyone help me please?
03-24-2016 05:29 AM
I did not check too close your VI, but 3 things I noticed (but it is not totally clear what is on the server side...):
03-29-2016 07:06 AM
Thank you, fixed the error thing and tried to set a time wait to delay but still it only gets the first data from the web server page but if the data changes the VI doesn't get it. I tried a block from http client palette (Add Headers I think) to control cache but nothing, also tried to change it to DataSocket as DataSocket Read block has an option to apply DataSocket Update when new data comes but just realized it doesn't work for http so no deal. It seems to be requesting the data only once so what can I could think is to creat a logic to keep sending the URL to conncetion time to time but if it doesn't work I will probably just change strategy since I don't think will be a problem it not being real time (it was preferable real time but well) since the web server itself isn't that fast to upload itself (I used the max baud rate I could for my microcontroller doesn't bug though), just will try to store all the data on the web server before getting it to LabVIEW, so when I use the VI it won't matter to get the body of the page only once.
03-29-2016 07:32 AM
03-29-2016 07:35 AM