LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does VI call the sub-vi in the same folder by default?

Solved!
Go to solution

When copying a folder containing the main program and subvi to a new path, the path of the subvi called by the copied main program is the path before copying. How can the main program call the sub vi in the current folder by default. Or how to change the calling path of sub vi while copying the main program of labview.

0 Kudos
Message 1 of 5
(805 Views)
Solution
Accepted by topic author REDJ

You should have a project file. If you don't have one then you should make one, and make it a practice to use project files in the future. If you want to make a copy of the files in the project to a new location then you just save a copy of the entire project to a new path.

0 Kudos
Message 2 of 5
(787 Views)

There is a specific option in the Save as... dialog: Copy vi hierarchy to a new location (or similar).

If you insist to do a simple copy, it may be useful to rename the old vi directory: then, opening the copied main vi, LabVIEW will not find its subvis, so you will be able to search and link them in the new location.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019
0 Kudos
Message 3 of 5
(786 Views)

How are you performing the copy?

If you us the OS to copy the folder, that problem won't occur.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 5
(751 Views)

@paul_cardinale wrote:

How are you performing the copy?

If you us the OS to copy the folder, that problem won't occur.


Wow, you are correct. I would have sworn that I've had linkage problems when copying using the OS in the past. 

0 Kudos
Message 5 of 5
(745 Views)