09-21-2021 03:22 AM
I would like to control B.exe from A.exe through Open Application in the same computer (localhost).
I expect some delay time in A.exe to prepare B.exe for 60 sec (default timeout) but it took only a few seconds.
Under this situation, a user should take care of the sequence or timing of executing applications not to have a connection error.
I suspected to open the network port before executing Open Application but same result after clean booting of computer.
*)This problem was shown in LabVIEW environment, too.
How can I enable the timeout (60 sec)?
labmaster.
09-21-2021 03:24 AM
Hi labmaster,
@labmaster wrote:
I expect some delay time in A.exe to prepare B.exe for 60 sec (default timeout) but it took only a few seconds.
How can I enable the timeout (60 sec)?
Why do you expect "some delay time in A.exe"?
Why do you expect a default timeout of 60s?
What exactly took only a few seconds?
Where did you set a timeout?
Why don't you show some (simplified) code example?
09-21-2021 07:07 AM - edited 09-21-2021 07:53 AM
Thanks for your questions.
The error I met came from Open VI Reference.vi not Open Application.vi.
If I didn't prepare B.exe, why didn't Open Application.vi show an error? (useless setting of timeout)
and How to escape the error from Open VI Reference practically? I mean waiting for preparation of B.exe.
labmaster.
Why do you expect "some delay time in A.exe"?
-> Both applications should be launched to communicate each other. But there could be a delay for launching applications.
Why do you expect a default timeout of 60s?
-> The default value of timeout in Open Application is 60 s. The same eror even for inifinity timeout (-1).
What exactly took only a few seconds?
-> There was an error after a few seconds in executing Open Application.vi in A.exe (before launching B.exe).
In previous experience with TCP/IP communication, a code wait for timeout rightly.
Where did you set a timeout?
-> Timeout of open application.vi
Why don't you show some (simplified) code example?
-> see the attachment which a part of A.exe.