LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ServerTCPRead timeout error

Hello,

            Currently I am facing ServerTCPRead timeout error but the handle between Server and Client is positive . Once the time out exist I need to disconnect my client and connect . Is any chanche I can overcome timeout error -11 

 

 

Thanks in Advance

0 Kudos
Message 1 of 4
(4,343 Views)

Hello kmr13,

 

What timeout value are you passing the ServerTCPRead function? From the help:

 

ServerTCPRead returns as soon as it reads some data from the connection. The function waits the entire timeout period only if no data is available.
If you pass zero, the function uses a default timeout of 5,000 milliseconds.

 

Are you ever getting any data from ServerTCPRead? Have you verified that the writer is writing data?

 

Could you post some of your code so we can see what is going on?

 

Also, what do you mean by "overcome timeout error -11"? Are you expecting the error to occur and want your program to continue with execution? Or are you looking to never experience that error in the first place? Both questions have very different solutions. Any information you could provide would give us the opportunity to help you further!

 

Thanks!

Collin D.
Software Product Manager
0 Kudos
Message 2 of 4
(4,321 Views)

Dear Collin

                     Yes in timer I am passing data from Server to Client and Client to Server for every 0.2 sec .  

In ServerTCPRead I'm printingthe data in separate file , hope there is no problem but the error value is -11 , which means TCP/IP  time out error . 

0 Kudos
Message 3 of 4
(4,315 Views)

您好,

请问您最后有没有解决ServerTCPRead 的 -11 Timeout error 呢?如果解决了,能请教一下解决方法吗。

在此感谢。

0 Kudos
Message 4 of 4
(2,335 Views)