LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have to restart Labview after a TCP Open Connection timeout error

Hi, I'm developing an application that talks with an IP camera using http. Every 1 or 2 seconds I request an image from the camera. My program works fine for a while and suddenly there is a TCP Open Connection timeout error (code 56). Sometimes, the connection is recovered, other times, it is not and it is impossible to get connected again. If you stop the VI and run again, it doesn't connect, giving a timeout error.

 

In order to get connected again, I have to restart Labview. This situation always repeat.

 

Does anybody know what is the cause of the problem I have and/or how to solve it?

 

Thank you very much!

 

Wilf. 

0 Kudos
Message 1 of 3
(3,505 Views)

Hi,

I also had the problem - this can be due to a static definition of your port. Try giving a dynamic local port in the TCP Connect.vi - if you have no possibility for changing this setting your problem is, that the labview.exe doesn't release the communication port. What are your current settings?

 

HTH
--
Joachim

0 Kudos
Message 2 of 3
(3,492 Views)

Thanks for you answer.

 

I'm setting a unique port in the program. What do you mean with dynamic port? a kind of ramdon port? or that's an option I don't know in Labview?

 

Wilfredis.

0 Kudos
Message 3 of 3
(3,446 Views)