05-27-2025 01:21 AM
Hi,
I have a problem where in my main VI I am using a subVI to open a third party application through cmd, let it run and then close it with another call to the system exec.vi. The problem I am having is that once it kills the application, it gets stuck in this subVI for some reason. Because this subvi contains third party applications and files I can not share I will leave a screenshot. Does anybody have any idea if there is something I'm missing? It feels like there is something I am doing wrong fundamentally with the calls to system exec.vi
05-27-2025 01:37 AM
I have no time to do some tests, but did you try launching the external app without the wait until completion flag?
It does not seem mandatory, since the lifetime of the vi execution is fully determined by the loop.
As a side note, the outer loop would never stop if for some reasons the .smp2 file is not created or does not grow the expected size. I think you should address this possible event too.
05-27-2025 03:28 AM
Thanks! That seemed to do the trick
05-27-2025 10:26 AM - edited 05-27-2025 10:31 AM
In addition to what has been said, there is significant room for improvement.
(.Hard to give more specific advice without seeing the VI and have the full requirements document.)