LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview program to check no other programs are running

Currently I have a timer program interfering with the pressure conditioning program which reads pressure and output (in volts) and records the data on a separate excel sheet. The problem lies of having two programs running at the same time where the data is not copied at all. I am trying to implement a feature that detects other labview programs which if it's found will automatically shut down all labview programs. Is there a vi for this execution?

0 Kudos
Message 1 of 6
(3,104 Views)

Is this in development or an executable? You can check whether a front panel is open or not using the "Front Panel Window.State" property. But, what do you mean your programs are "interfering"?

 

temp.png

0 Kudos
Message 2 of 6
(3,089 Views)

Check out this thread.

 steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 6
(3,088 Views)

If you're looking for another application, VI Server won't help you; you'll have to use Windows.  This page has a little snippet that will close a program based on the window name.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 6
(3,007 Views)

Thanks a lot. This helps tremendously. 

 

How would one go about in closing multiple programs at the same time? It seems that the snippet only checks one program with the specified name but how would you go about in closing >2 executables with different names.

0 Kudos
Message 5 of 6
(2,983 Views)

Hi Reyt

 

The Problem is due to excel or because of another program running?

Its Quite possible to find the running Programs but then your program should run independent of other programs. so design your program in such a way that it handles the issue by itself without bothering about another application

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 6
(2,969 Views)