04-01-2020 06:20 AM
Hello the forum,
in my application I run a VI using the Start Asynchronous Call node, then I call the Wait On Asynchronous Call node with no timeout (= -1).
I observe a delay of about 3 seconds between the moment the called VI stops running and the Wait On Asynchronous Call node returns.
Which could be the reason of this behaviour? Is there a way to lower this time?
Thanks
Have a nice day
04-01-2020 09:16 AM
Could you please post a simplified example of the problem you are describing?
BTW. This is a trick question... by distilling your problem down to a simple example, you will probably realize the mistake you are making... and if not, we can point you in the right direction.
04-02-2020 02:29 AM - edited 04-02-2020 02:55 AM
Hello Frozen,
here you are the simplified exemple. In this case no strange behaviour is observed, the called VI returns as soon as the execution ends.
The application in which I noticed the problem it's pretty huge. Which is the component that manages the call to the VI? Is it the VI Server? If yes, can the behaviour be caused by the number of VIs the VI Server has to manage?
Thanks
04-02-2020 07:01 AM
If the called VI uses lots of VIs it could well be startup/shutdown that's delaying it. You could instead of waiting for it have it send an event with the result, then it can shut down as slowly as it pleases. 🙂