11-15-2017 10:40 AM
Hello,
I have a project with AF actors and inside of one of the actors' lvlib there is a class that says it is not loaded. So in the right click menu of the class i click "Load" - this opens the class in a new project window but it stays not loaded in the original one. I have no idea how else i can load that class neither what is causing the lock actually.. Please someone help me.
Solved! Go to Solution.
11-15-2017 12:11 PM
Locked with a password perhaps?
Ben
11-16-2017 06:55 AM
Hi Ben,
no the class is not locked with password
.. i tried to move the classes on disk, then reopen the project -after that i was able to remove the classes from the lvlib (as lv could not find them) and then i could re-add one of them without any problems, but the other not yet..
11-16-2017 07:54 AM
I eventually resolved this by deleting the instances of this class in other VIs -then once i did Edit -> Undo and labview [magically] asked me if i want to remove this class from it's owning library (even though the library didn't show the class as its member in project viewer) so i 'removed' it and everything is fine now.
11-16-2017 08:04 AM
@ravyh wrote:
I eventually resolved this by deleting the instances of this class in other VIs -then once i did Edit -> Undo and labview [magically] asked me if i want to remove this class from it's owning library (even though the library didn't show the class as its member in project viewer) so i 'removed' it and everything is fine now.
Speculating...
Libraries (and classes) have a XML file that contains info about them and ownership etc. Provided they are moved using the functions in the Project, they files get updated as things are moved. Now if things get moved OUTSIDE of LabVIEW, then we can run into odd situation where the files of the libraries are inconsistent with each other. Try to do all of the moving a shuffling INSIDE of LabVIEW to avoid those types of issues. Not saying that was the situation for this thread. Only mentioning that that final message sounded familiar.
Ben
11-16-2017 08:36 AM
@Ben wrote:
Try to do all of the moving a shuffling INSIDE of LabVIEW to avoid those types of issues.
For the most convenience, use the "Files" view in the project. This will show the directory structure on disk. You can then just drag your files to where you want them and then deal with the warning message about all of the VIs, etc that will be updated because of this move.
01-04-2018 09:49 AM
I ran into the same problem. It occurred when I accidentally created accessors with the same name in the same class. That crashed LabVIEW and then recover crashed. I was able to fix it by opening my .lvclass in notepad++ and modifying the XML code. I renamed the duplicate VI to what I wanted it to be. Thanks to Ben for planting the seed that .lvclass is XML based!!!