From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

How to Kill a Windows Process from Within LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview
To Demonstrate How the VI would Kill a Windows Task

Description:
The VI would demonstrate how to programmatically use the System Command.vi to basically kill a running executable within
the Windows OS, with the example of Solitaire.exe

Instructions:
To implement this example:

  1. Run the VI
  2. (Optional) Change the executable that you would like to kill by accessing the block diagram

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

 

bd.PNGfp.PNG

**This document has been updated to meet the current required format for the NI Code Exchange.**

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.