LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get process state in order to control loop

I want to get state process of other logiciel. I must run my test until this software is stopped.
Is it possible to do it?
If yes, how do it?

Thanks for your help.
Best regards.
0 Kudos
Message 1 of 3
(2,526 Views)
You can use theVI server to open a reference to the other process (I`m assuming that both processes are LabVIEW processes). If the program is in memory, the name of the VI should suffice (Path is not necessary).

Then you can poll the property "Execution.Status" to see if the target process is running or stopped. Linking this to a comparison or case-structure (The Enum makes the case structure perhaps easier to read) you can programatically stop the second process as soon as the first is no longer running.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 3
(2,526 Views)
In fact, it's not labview application, it's an emulator application. When this application run we can see one process linked to it in taksmanager.
0 Kudos
Message 3 of 3
(2,526 Views)