12-17-2021 08:09 AM
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.
Solved! Go to Solution.
12-17-2021 08:46 AM
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.
12-17-2021 08:49 AM
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.
12-17-2021 11:21 AM
How are you performing the copy?
If you us the OS to copy the folder, that problem won't occur.
12-17-2021 12:15 PM
@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.