LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

current vi path in subvi

I am using the current vi path function in a subvi that is saved in folder A.  My main program is saved in folder B, and it calls that subvi.  When the subvi is called, the current vi path function output the location for folder A (where the subvi is stored), but I want the location of where the main program that calls the subvi is to show instead (folder B).  How do I do that?

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 3
(2,463 Views)

You Can get a vi's caller either using the call chain of vi propertie callee.  These will return an array of VI names as the call chain.  Open a reference to the caller and us vi path property, this is the path of the caller.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 3
(2,456 Views)