LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

program dependent on subvi path (HELP!)

Hi
I call a subvi in my program dynamically using the Run VI method. To get the reference to the subvi I used "Open VI Reference" giving it the path of my subvi.
This makes the program dependent on where the subvis are. So I can't easily copy the folder somewhere else or run it on the other computers.
How can I make my program independent of the path?

Best Regards ,
0 Kudos
Message 1 of 2
(2,420 Views)
The only way around this is to have the subvi in memory. If you have the subvi in memory you can just pass a string with the name of the vi. For example: name.vi. This will allow labview to search for the vi. You don't need to use the full path but the vi must be in memory. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 2
(2,420 Views)