LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW - Web browser : Reading HTML - Advanced ActiveX Problem

All

I've written a code using ActiveX for a secure communication from my Labview program to an URL. When the program runs the URL, the servers sends me some string. The URL I send from my program to the server is secure; I use a https instead of http.

The problem I have is: There is some kind of activex cacheing which causes my program to lag at time and not read the updated string that the server sends me. I've used data sockets without a secure communication and it works well. ActiveX lags even for non-secure  communications. Has anyone faced this problem before ? Or is anyone aware of a dll that can take as input the URL, and spit out the HTML or the inner text ? Any help will be appreciated.

For now, the solution we have is: we are using a putty to where my program communicates, and the putty communicates to the server. This is clumsy and I want to know an elegant way of doing it.

Thanks

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 3
(3,059 Views)

Hi Maximus,

The LabVIEW Internet Toolkit does have VIs that return the full HTML text of the document on a certain URL. However, I don't think these VIs support HTTPS. Do you have a HTTPS URL that I can use to test the connection? What happened when you used DataSocket? You have mentioned the "cacheing" a couple of times now - what exactly do you mean by it?

 
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 2 of 3
(3,046 Views)
Yeah LabVIEW does not support secure socket connection, that's why I used activex. Data socket works great for http but does not work for https. Activex definitely caches. The server's response don't match what my program reads. When my program reads the "document" property node of the activex-IE that's where the cacheing takes place. There is a slight delay. So I used the "ready state" property to continuously loop till it goes to ready state. This seems a temporary fix but it works.
 
My friend at microsoft told me that, we can specify the cacheing time of an activex-IE but I was not able to find it out.
 
Thanks/

Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 3
(3,036 Views)