08-17-2016 02:59 PM
For within a labview VI, I kick off (run) an exe (let's call it Scanner.exe) using the System Exec VI, What I do not know, however, is how to shut it down remotely. Is there a call for this? Better yet, is there a way to query the currely running tasks (in WIndows 7) to (a) ensure that the system exec was successful and is indeed running, and (b) the use the application's name to shut it down somehow? I am using LabView 2009
08-17-2016 03:17 PM
08-17-2016 03:42 PM
Hello!
Here you have shortened list of available messages:
https://msdn.microsoft.com/en-us/library/windows/desktop/ff468922(v=vs.85).aspx
And here you have example of listing running tasks:
https://decibel.ni.com/content/docs/DOC-9276
Marcin
08-18-2016 08:43 AM
Hi Bean,
U may kill any task using this command to system exec : taskkill /f /im "EXE Name.exe".
EXE Name refers to Name in Task Manager
08-18-2016 09:28 AM
You can also use the .NET process library - it's like SystemExec but offers a lot more functionality including being able to stop/kill/monitor a process.