LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview look if task is running?

Solved!
Go to solution

Hi everyone,

 

I want to write a Look-Up VI,

 

I have the name of the Program or the Path (like : "C:\User\....\EXCEL.EXE" or firefox.exe)

 

And want to know if this Program is running at the moment (an maybe kill it).

 

Has someone an idea?

0 Kudos
Message 1 of 3
(3,157 Views)
Solution
Accepted by topic author NoName1771

You can fairly easily do this using .NET:

dotNet Get Process.png

 

This will obtain an array of processes by name, and kill the first one it finds.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 3
(3,129 Views)

Works perfectly.

 

As addition:

 

If you want to know if a task is running at all (not kill it) just take get the array size before the kill method

0 Kudos
Message 3 of 3
(3,105 Views)