LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the path settings for a subvi to get loaded?It loads the subvi from other directories.There had been few questions on this before too.If anyone could help out please.

my understanding you may be loading the file dynamically.
the functions
build path, and
strip path
under the FileI/O can be use to change the directory path of a file
Message 2 of 4
(5,742 Views)
And if you're not loading it dynamically, right click on the subVI and select Replace and then browse to the path of the subVI you want.
Message 3 of 4
(5,739 Views)
A trick for loading dynamic VIs, no matter where you put them, is to create a path VI. It is located in the same directory as your dynamic VIs and is statically called. Its sole purpose is to return the directory it resides in. You then use Build Path to create your full path, with inputs from the directory VI and the known name of your dynamic VI. This solves the problem of having different development and run-time directories. For example, you may do development using a hierarchical directory structure, but distribute in a flat LLB.
Message 4 of 4
(5,715 Views)