To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This is a simple VI that aims to illustrate the abilities of the system exec function
Description
In this example, pulling list shows the currently executing process, click and choose from one of these processes and terminate it.
CMD task list command to get a full list of the processes which is displayed on a front panel indicator.
The program wait for an event to exit or to kill a process using the CMD Task Kill function.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Sup Aaron! That's a pretty cool example. In the Event Structure it might be worth using a Case Structure to check whether someone's hit the Stop Process button with the 'Select Process' option in the Combo Box still enabled. This would prevent any false commands generated.
I think you have to put quotes (") around the name of the application you are terminating if if contains spaces. At least on Windows XP.