LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatic find clones in memory

How can I find (dynamically started) clones in memory?

 

In the developement enviroment they can be shown manually using View --> Browse Relationsship --> Unopened SubVIs 

 

But I find no function or property/invoke node to do that in my application.

 

How we start the clones:

Note:
If our application "crashes", the clones remain in memory and we need access to them to stop them. We need to have this functionallity, to not restart LabVIEW in such case.
Message Edited by zav on 09-04-2008 09:03 AM
0 Kudos
Message 1 of 2
(2,600 Views)

This might help you.

 

I'm not sure what you mean by your application "crashing" since if the process actually crashed, the VIs would stop running as well. I assume you're talking about something that stops your code internally. Other than the fact that this is bad design in general (you should have proper error handling and usually only stop an application at a user's request), there is also something else you can do - write a small VI which will hold an array of the VI references. Whenever you open a VI, add its reference to the array. Then, you can simply close all the references in that array.

 

Again, note that this is a bad way of doing this - ideally, you would want to send a command to each VI to stop itself. You can do this by using something like a global variable or a notifier.


___________________
Try to take over the world!
Message 2 of 2
(2,584 Views)