LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI References to Running Clones

Solved!
Go to solution
How to I get VI references to two clones (of the same reentrant VI) running on a remote machine?  I have tried the "clone.vi:1" notation but only get Error 7: file not found.  I have successfully obtained common VI references running on the same remote machine.
0 Kudos
Message 1 of 13
(5,434 Views)
Solution
Accepted by topic author ww.brown
I have answered my own question.  After acquiring an application reference for the remote machine, you wire the "<my clone name>.vi:<instance #>" string to the Open VI Reference "vi path" port.  This works because the clones are in memory (by definition).
 
WB
Message 2 of 13
(5,416 Views)

According to the LabVIEW 2017 Help, "Note LabVIEW does not support the ability to open a reference to a clone VI with the Open VI Reference function. Using this function to open a reference to a clone VI may cause LabVIEW to crash."  NI appears to have made it more challenging to get a VI reference to a clone, because <instance #> is not 0 or 1-indexed (LV 2016).  My clone VI name is gui.vi:2230002.  Clearly this isn't something I'm supposed to do, but does anyone know a way to get <instance #> without asking each clone to return it?

 

Thank you,

 

Steve K

0 Kudos
Message 3 of 13
(4,594 Views)

You can use the Clone Name property node as you are launching the clone.

0 Kudos
Message 4 of 13
(4,590 Views)

Thanks Gregory,

 

But I didn't author the clones.  I'm looking for a way to get <instance #> without asking each clone to return it.

 

-Steve K

0 Kudos
Message 5 of 13
(4,571 Views)

I see... It seems like the AllVIsInMemory property doesn't care about clones, and I cannot find any other way to get the clone names either. 

 

If I understand this post correctly, it is not possible.

0 Kudos
Message 6 of 13
(4,557 Views)

I had a related problem with clones in 2012-13.  Attached is a solution sent by NI in 2013.  Hope this helps!  WB

Message 7 of 13
(4,555 Views)

The LabVIEW Task Manager has the ability to list all the clones.   You could dig that functionality out of it.

Message 8 of 13
(4,551 Views)

Hi drjdpowell,

I just flipped through that task manager quickly. If I understand correctly, it will find statically referenced clones, but it will only find asynchronously launched clones if you drop the "clone beacon" VI which is just an FGV that keeps track of asynchronous clones.

0 Kudos
Message 9 of 13
(4,541 Views)

It uses multiple techniques, one being to search for clones up to a certain number (like the first 100).   Give it a try.

0 Kudos
Message 10 of 13
(4,529 Views)