01-16-2023 08:58 AM
Hello to all LabVIEW users!
I have noticed that using TCP Open Connection function is not following timeout value.
Check the image. The time difference is 21 seconds, despite setting timeout to 60 seconds.
Anybody noticed this before?
LabVIEW 18.0.1f4 (32-bit)
Solved! Go to Solution.
01-16-2023 09:30 AM
From the Detailed Help of "TCP Open Connection Function":
When wiring an unused IP address, you may receive an error stating the network operation exceeded the user-specified or system time limit. This error occurs before the default timeout of 60000 ms has occurred. To correct this error, wire an IP address that is running and listening on the port you are trying to use.
Could this be the problem you are having?
Bob Schor
01-16-2023 10:30 AM
Yeah, this might be it. It is troublesome because I am timeouting before device boots up, so for the booting time it looks like "unused IP address".
Anyway, thanks for help!
01-16-2023 10:35 AM
@AdamTrojak wrote:
Yeah, this might be it. It is troublesome because I am timeouting before device boots up, so for the booting time it looks like "unused IP address".
Anyway, thanks for help!
It doesn't have to be a problem. You could use this error to figure out if your device boot up.
01-16-2023 02:21 PM
I do some LabVIEW Real-Time work, where I need to connect to a "remote host" (which I call a "Target", with the PC running the main UI code being the "Host"). I wrote a little routine called "Target ID, IP" that does the following:
Doing something like this can handle the problem of timing out before the remote device boots up.
Bob Schor