05-09-2011 03:17 AM
05-09-2011 03:26 AM
Hi vicens,
it sounds like the vi hangs in the TCP listener. You can close the Listener Refnum to stop the the listener waiting on new connections.
If this doesn't help, then please show us your vi.
Mike
05-09-2011 03:42 AM
05-09-2011 03:49 AM
this is the vi
Vicen
05-09-2011 05:21 AM
Hi Vicen,
it should work if you move the function to close the listener into the 3rd loop.
See the attached picture.
Mike
05-09-2011 11:00 AM
Thank you MikeS8,
The VI can to close it, but it occurs Error 1.
Is not important error?
05-10-2011 03:56 AM
Hi vicens,
where did you get this error? Can you upload your changed vi?
Mike
05-10-2011 04:23 AM
The vi changed runs good, but when I stop the program occurs Error 1 in loop1.
Vicens
WinXP LV7.1/10
05-10-2011 04:58 AM
Hi vicens,
the error is correct, because if you close the listener (what you do in loop 3), then the listener will result with an error and the output is "not a refnum", so you can't read data with the "read function". You can avoid it, if you check which error occurs from the listener and react on it. If you get an error, then you don't need to run the read funtion.
Mike
05-10-2011 05:19 AM