12-19-2022 02:16 AM
Hi there,
This problem drives me crazy. I try to load a VI and then LabVIEW starts searching for some of the subVIs (without success) and then throws me a file dialog to browse the file. But the file is right there at the where it is supposed to be. What could cause an issue like this?
thanks!
Solved! Go to Solution.
12-19-2022 03:15 AM
@1984 wrote:This problem drives me crazy. I try to load a VI and then LabVIEW starts searching for some of the subVIs (without success) and then throws me a file dialog to browse the file. But the file is right there at the where it is supposed to be. What could cause an issue like this?
The location of that file changed from where the referrer last found it (and this location was stored in the referrer).
The changed location can be relative (you moved a VI up or down one directory) or absolute (if the reference used an absolute path).
You often get the dialog, because of this. Not always; AFAIK moved classes are linked automatically but you'll get a warning. Moved VIs you get this dialog, at least in certain situations.
The location where it shows the file is just the default location of that dialog, and the file "coincidently" happens to be there.
It appears to be rather silly, but the alternative (blindly relinking to the file that has moved) could be dangerous. IIRC this is how it would work before projects where introduced (<LV8) and it could cause really big problems. And also some solutions...
Selecting that file and then saving the referrer should fix the problem.
12-19-2022 05:55 AM
That was a comprehensive answer, thanks a lot. Wondering LV doesnt display this information to the user in such a clear manner.
12-19-2022 08:42 AM
Are you opening a VI that belongs to a project outside of the project? I always open up files that belong to a project from within the project, itself. I think this makes issues like this highly unlikely. Also, separating compiled code from source code could help as well.
12-20-2022 04:57 AM
@1984 wrote:
That was a comprehensive answer, thanks a lot. Wondering LV doesnt display this information to the user in such a clear manner.
I'd say that LabVIEW was made by engineers, and communications to users is often rather low level.
This one could definitely be improved.