LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Path to TopVI

Hopefully this is a simple one...
I am using LabVIEW V 7.1. How can I obtain the path of TopVI from a subVI that resides in another directory?
0 Kudos
Message 1 of 4
(3,569 Views)
Use the VI Server functions coupled with the Call Chain function. The Call Chain doesn't care about physical locations.

Example:


Message Edited by smercurio_fc on 07-23-2007 01:19 PM

0 Kudos
Message 2 of 4
(3,563 Views)

Very clever - thanks. The call chain can be lengthy and the TopVI is not always the same name.

From the output "Call chain" I put in a "Array size" and subtracted 1 for the input to the index array.

Thanks again.

0 Kudos
Message 3 of 4
(3,555 Views)
OK, so you're really want to know the parent VI rather than the "top" VI. In that case, the index of 1 will work for you.
0 Kudos
Message 4 of 4
(3,546 Views)