LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I create a reference to "this vi"

how do I create a reference to "this vi"
0 Kudos
Message 1 of 6
(3,890 Views)
Place "current VI path constant" (from the "file i/o.. file constants" palette) and wire it to "open VI reference" from the "application contol" opalette.
Message Edited by altenbach on 09-23-2008 11:22 AM
Message 2 of 6
(3,885 Views)
If you drop a property node on your block diagram and set the class to "VI" it will default to the current VI if the reference input is unwired.  You can then use the reference output from that node.
0 Kudos
Message 3 of 6
(3,876 Views)

Dropping a node without using the path has advantages that it works with reentrant VIs and Clones AFAIK.

 

Just remember to choose some random read prpoerty (VI Name is a good one) to make the property node "Valid" even though you only need the reference output (top right).

 

Shane.

Message 4 of 6
(3,861 Views)

mda711,

 

There's no need to create a property node or an Open VI Reference primitive.  You can place down a VI Server Reference (Programming >> Application Control), and it will default to "This VI".

 

Chris M 

Message 5 of 6
(3,851 Views)

Aye that'll do the trick nicely.

 

How you managed to keep that secret, I'll never know. :smileywink:

 

Shane.

Message 6 of 6
(3,846 Views)