12-19-2014 05:21 PM
I am trying to copy a project - I get multiple dependancy messages that say the files have been "deleted, renamed or removed" -
Please define - does this mean the file cannot be found?
the file has been renamed and accessed ?
or no file of that name can be found in that directory ONLY - or cannot be found ANYWHERE on the computer.
The above message is exceedingly misleading and NON-Specific.
12-19-2014 07:22 PM
Exceedingly? It's as clear as it can realistically be.
The project file just links to the items you have listed in it. If you move that VI(or whatever else is linked in your project), the link is broken. It's not going to search your entire computer for the dependency. Doing so would prevent you from doing things like having two IO files implemented in different ways for different applications without it searching for those at any given time.
That means, it doesn't know what happened with your VI. You either renamed it and broke the link because it's looking for the original name, moved the file so it's looking in the wrong place, or deleted the file so it can't find it. Fix the dependency and the error goes away. You can search for the VI if you'd like.
You probably want to start having a more organized way to program to avoid this problem.
12-20-2014 05:52 PM
A LabVIEW "Project" has several meanings. On one level, it refers to a particular LabVIEW Project File, extension .lvproj. On another, it refers to all of the things that you see when you open a LabVIEW Project (which can have hundreds of VIs spread across multiple independent folders, and even on multiple machines).
When you look at a Project in LabVIEW, you see things that look like Folders. These are called "Virtual Folders", and may (or may not) correspond to actual folders on your disk. It is possible to set up the Virtual Folders to correspond to physical folders (the "autopopulate" option helps with this). For example, I set up my Project with a top-level folder that holds the Project (.lvproj) file and all of the VIs in the Project, usually in sub-folders with names like TypeDefs, Utilities, Acquisition, Reporting, Documentation, and create a corresponding set of Virtual Folder inside Project with the same names.
Within a Project, files (VIs) seems to be stored in a "relative" format with respect to the .lvproj file. If you use Project to move ("rename") the file, it is able to maintain the link to itself. However, if you use Windows to move an element (file or folder) of the Project, the Project file won't "see" that move, and when you double-click it, it won't be able to locate the things you moved.
If, however, you've got all of the elements of the Project contained in a top-level folder, you are usually safe in using Windows to move the top-level folder. In some cases, you'll get warnings from the Project when it opens, saying things like "The file expected at (old folder) was found at (new folder)", but you can safely ignore them.
Good luck.
BS