LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get full path of caller VI?

Solved!
Go to solution

Labview 8.x broke my code.  I used to be able to refer to a VI by its name, and now it wants the full path.  Unfortunately, "call chain.vi" only returns the name.  Does anyone know how to refer to the vi (its full path) that calls a particular subvi, from the subvi?  It used to be the second element of the string array from "call chain.vi".

 

I'm using LV8.6.

 

Thanks,

 

Jeremy

0 Kudos
Message 1 of 5
(5,208 Views)
Solution
Accepted by topic author jeremy_levy

Hi Jeremy,

 

I'm not sure about 8.6, but in 8.5.1 you can still use a string containing the VI name to open a reference of a VI that is in memory.

You can't use a path constant with just the VI name though.

 

VI ref by name 

 

Daniel

 

 

Message Edited by dan_u on 02-17-2009 08:34 AM
0 Kudos
Message 2 of 5
(5,197 Views)

With 8.x you can still refer to a VI by just its name if its already in memory - which a caller obviously should be. Can you post the code that is causing the trouble? Or perhaps explain more completely what you are trying to do and what happens?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(5,188 Views)

Thanks--I had almost that in my pre-8 code, but there was a path to string conversion that 8+ does not like (and 8- required).  It was very useful to compare your png with my code.

 

Jeremy

0 Kudos
Message 4 of 5
(5,168 Views)

Actually, you have always been able to wire a string to the open function like that.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(5,150 Views)