‎11-07-2010 01:33 PM - edited ‎11-07-2010 01:34 PM
Hello everybody,
i am creating a simple application to synchronize the time of two computers for synchronized data acquisition (the actuall time doesn't matter, i just need both computers synchronized). Here is the image (the top sends time string data, the bottom is the listener). Of course they are in different .vi's!
Anyway it is working, but when i exit (push the button stop on listener) i get the following error:
LabVIEW: The network connection was closed by the peer. If you are using the Open VI Reference function on a remote VI Server connection, verify that the machine is allowed access by selecting Tools>>Options>>VI Server:Machine Access on the server side.
Machine is allowed access, since i am using localhost, while testing it.
Can anyone help me please?
Thank you,
K
‎11-07-2010 03:48 PM
This is a perfectly normal error. When the client closes the TCP Connection, the host will return this error to indicate that the client has closed the connection.
‎11-08-2010 10:42 AM
Thank you for the answer.
Is it possible to stop the application without this error? This can be done by clicking on the labview "abort execution", but i don't like this button.
regards,
k
‎11-08-2010 10:48 AM
Trap and ignore that error with a case structure.
‎11-08-2010 10:49 AM
Sure. Either turn off automatic error handling in your VI (VI Properties -> Execution) or put a Clear Error function (in the dialog and user interface palette) after the TCP Close.