LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unknown library error

Hi, I have a VI that stopped working, I believe it is because one of the necessary libraries has been corrupted in some way. I've tried repairing any corrupted files from my labVIEW download but it didn't fix the problem.  I've attached images of the error messages that come up.

Thanks

Download All
0 Kudos
Message 1 of 5
(2,602 Views)

Now attach the code (probably it should include the entire Project folder, zipped up) so we can understand what the error might mean.  It is probably not that a library has become corrupted, more likely that something went awry in your code.  In any case, showing us a listing of VIs with errors, but not letting us see these VIs (and judge for ourselves) does not help us to help you.  Attach your code.  Please.

 

Bob Schor

0 Kudos
Message 2 of 5
(2,598 Views)

Unfortunately I can't include the whole project as it is far to large. It's an inherited code from a former student for a research project. I attached the sub VIs that aren't running.  The code was running not to long ago and even if I try to run previous versions of the code from before I joined the project they won't run.

Download All
0 Kudos
Message 3 of 5
(2,574 Views)

Those errors appear to be a class access issue.  You are trying to use private methods of a class in a VI that is not part of the class.  At least, that is most of the errors I saw.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,569 Views)

Like crossrulz said, these look like issues with class ownership of the VIs.

 

Is it possible that the two VIs you mention (Read Subsystem Map, Open Session) were previously members of the "niInstr FIFO Register Bus v1 Host.lvclass" and that they were (perhaps accidentally) dragged out of that class?

 

If so, dragging them back in will probably fix the issue, although you may retain some issues with bundling and unbundling that need manually fixing (but that would just be open the VI, click on the {un,}bundle node and choose the same name that is visible, or the renamed value if the class has changed in the time since they were dragged out.

 

If that's not the case, you could consider making those VIs that are mentioned in the error panel public (obviously this has other effects - anything can call them then) or Community scope (and making these two VIs friends of the class) - again, this probably suggests that your VIs need access to private data of the class, and so should be class members (or your class might need refactoring/breaking into more than one class, but your question is about errors, not design choices).


GCentral
Message 5 of 5
(2,562 Views)