04-14-2019 07:24 PM
I tried to add an lvlib (downloaded from the web) to my project to use the .vi files within it. I didn't know what I was doing and taught the project file some bad paths. Now I'm trying to set things straight, and the conflicts refuse to resolve. No matter how I organize the file structure within my project folder, nothing goes right.
Here's the structure, using auto-populating folders. Power Requests.lvlib is the "holder" of Power Create Request.vi and others:
If I try to open one of the Power .vi files, I get this but for the .vi:
And if I tell it to open the one that really exists, I get this:
If I try to resolve conflicts on one of those files, I get this – and by no manner of means can I
get it to accept ANY path for the .lvlib file. Only the selected path actually exists.
What is the correct file structure or method for including an imported .lvlib into a project to use it? And how can I get it to FORGET everything it thinks it knows about paths to that library, to start afresh?
04-15-2019 03:59 PM
Well, start by getting back from your Version Control System (you do use one, don't you) the Project just before you added the .lvlib. Much better to start with a clean system.
Ummm, if the above step doesn't work, stop fiddling! Find the oldest, least-corrupt version you can and save it somewhere. Now you can fiddle and not get further behind ...
This would be an excellent time to implement Version Control. Subversion and Git are reasonably popular with LabVIEW Developer (I'm a Subversion user) -- you just need to find a Repository you can use. Because you are going to try things that may or may not work, you will want to do something like the following:
As you've discovered, there are "interesting" links between Projects and Files, between Projects and Libraries, and between Libraries and their Files. I'm not an expert, but have been "bitten" by similar problems you are having. Some things you might try (but only with proper backups!):
Bob Schor