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.

[IDLE] Dallas User Group Community

cancel
Showing results for 
Search instead for 
Did you mean: 

Example Code: Kill a Process from LabVIEW

Introduction

In this example, it will describe how to kill other Windows applications like  internet explorer, Firefox, etc from LabVIEW. In order to use this example, you  will need to know the name of the process that corresponds to the Windows  Application. For example, Internet Explorer's process is iexplore and FireFox is  firefox.

Steps to Kill a Process

1.) Create the Process constructor to access the running processes.
2.)  Get all available Processes on the machine
3.) Convert the References to the  Processes names.
4.) Search the array of names for the application to  terminate.
5.) Kill the running process if it exists.

killaprocessinLabVIEW.png

Download the VI here.

0 Kudos
Message 1 of 1
(4,748 Views)