12-10-2020 03:28 AM
Hello All
I am using the system exec to launch an external application, which is a console app.
When I double click the app, it runs normally and I get the console screen with messages.
When running the app using the system exec, the console screen opens but with no messages.
Moreover, I cannot kill the app using taskkill /IM ...
When using a non console app it runs and closes correctly.
Does anyone has an insight?
I have attached a screen shot of my code.
Thanks!
Gil,
Solved! Go to Solution.
12-10-2020 05:06 AM
Hello All,
I need to run a an external app using system exec VI.
When I ran a windows app all is working well, And I can start the app and then kill it.
But when I run a console app, I get a blank console screen, and cannot kill it.
I do get the output in the "standard output" window but I want this data to appear at the console.
Who has an Idea?
Thanks!
Gil,
12-10-2020 05:49 AM
Change the boolean input "wait until completion" to false.
12-10-2020 06:29 AM
Hello Rolf first of all thanks
I have done as you suggested,
The app does open.
But I can not close it using using "taskkill /IM"
thanks!
Gil,
12-10-2020 07:08 AM
Ok, I have found the problem of not being able to close the app.
The app name had a "space".
I removed the space and the app is closed.
Thanks!
12-10-2020 10:24 AM - edited 12-10-2020 10:25 AM
12-18-2020 06:10 AM
Thanks!
12-18-2020 11:23 AM - edited 12-18-2020 11:26 AM
On a side note I have found that depending on your Windows UAC settings LabVIEW programs my not have the permissions necessary to taskkill an application even though it has the permissions to launch it.
I ran into that when I wrote a LabVIEW GUI for Iperf.
12-19-2020 05:37 AM
thanks,
the problem was the space in the app name.
After removing the space taskkill worked just fine