10-27-2004 09:19 AM
10-27-2004 10:15 AM
10-28-2004 11:37 AM
10-28-2004 01:12 PM
02-10-2021 12:19 AM
So what can be a possible solution to this if there are multiple servers (PLCs) a VI is accessing in a process based machine and in case any one connection breaks for some reason, a minute's time will result in loss of thousands of dollars.
02-10-2021 06:37 AM
@Lasun1432 wrote:
So what can be a possible solution to this if there are multiple servers (PLCs) a VI is accessing in a process based machine and in case any one connection breaks for some reason, a minute's time will result in loss of thousands of dollars.
If it's truly that critical, money might be better spent preventing a disconnect, rather than trying to deal with the consequences of one.
02-10-2021 09:52 AM
In the code the OP posted many years ago, the mistake they were doing was to use a hardcoded value for the local port. There is rarely ever a need to use a predefined value for the local port on the client side of a connection. Leave this input unwired and you should be able to reconnect instantly. Obviously you have the overhead of establishing the new connection but you will not have to wait for the TCP TIME_WAIT to expire.