NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
nalin
Posts: 22
0 Kudos

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.

 
Active Participant
Dr._Imad
Posts: 427

Re: 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
Knight of NI
Dennis_Knutson
Posts: 33,549

Re: 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.

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.
Trusted Enthusiast
DFGray
Posts: 2,783

Re: 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.

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.
Using LabVIEW 2011 - 2013 on Windows 7 64-bit