02-17-2009 12:23 AM
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
Solved! Go to Solution.
02-17-2009 01:34 AM - edited 02-17-2009 01:34 AM
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.
Daniel
02-17-2009 02:12 AM
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...
02-17-2009 08:00 AM
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
02-17-2009 05:05 PM
Actually, you have always been able to wire a string to the open function like that.
Mike...