‎06-09-2005 07:22 AM
‎06-09-2005 02:28 PM
@Peter Tjeerdsma wrote:
I'm programming a TCP-connection between the RT-module and the Windows-computer. At certain point I want to clear any errors before actually closing the connection. However when I run the application, Error 1 ("Input parameter is invalid") is returned. When I don't clear the errors, there is no problem. When I connect a error-constant, I get the same problem.
‎02-09-2009 09:28 AM
‎02-09-2009 09:36 AM
There is more than one solution....
Keeping the VI alive (don't let it go idle) is the simplest solution. Otherwise if you VI's have to go idel then you will have to start at the begining and open the connection again.
Ben
‎02-09-2009 09:48 AM
‎02-09-2009 10:05 AM
I'll assume you are loosing the connection on the Windows side.
You could have a test step that runs up-front that runs a VI in the bbackground that initializes the port and keeps the ref in an Action Engine but otherwise this VI the VI keeps running with calling the AE.
All other steps would access the Ae to get the connection info.
When the test seq is done kill the VI running in the background.
Ben
‎08-13-2009 05:02 PM
Ben,
your suggestion works perfect, i run a vi in a new thread with the telnet connection being held there, talk via another vi in the main seq. and terminate when completed. thanks
Kris