LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find vi reference to reentrant vi running

I launch some compy of a reentrant vi that run untill the caller vi stop it setting the STOP button trough an invoke node at "set control value".
If i abort the executioin of the caller vi how can i retrive the reference of the running vi to stop them?
0 Kudos
Message 1 of 3
(2,994 Views)
You will need to create a cache of references to the Reentrant VIs when you launch them. You are using VI Server to launch them, right? This means that you have access to the references at the time of instanciation, so you can create a tool (queue or something) that stores a copy of the refnums.

Good luck,

-Jim
Message 2 of 3
(2,994 Views)
I used the trick of vi called at every launch, storing the refences on an array in a shift register of a one shot while loop. I can store or read the refences.
But i am vexed for the impossibility to trace the references of the reentrant copy of the vi in the same way that it's possible for the non reentrant.
I see that the "profile vi" tools does not report nothing about the vi launched trough the vi server method. 😞
0 Kudos
Message 3 of 3
(2,994 Views)