Go to Post If you pay attention to every nut job on ChiefDelphi, you'll never reach a decision. - JesseK [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2010, 00:10
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Error: This VI claims to be part of a library

Okay, I had such a productive day at school, that I just had to go home and screw something up...

I tried to make a copy of the HolonomicDrive.vi so that I could modify it without messing up the original. Somehow I got things messed up and keep getting this error:

Code:
This VI claims to be part of a library, but that library does not claim to own this VI
The explanation in the error detail isn't much help. Does anyone know how to correct this? I'm not even sure if this is an error in the project, or if I've screwed up the whole VI libraries for labView...
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2010, 07:52
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Error: This VI claims to be part of a library

Like most computer error, it makes perfect sense once you know what it means.

Libraries provide namespace and scoping to VIs. You don't have to use them to use LV, but WPILib is making use of them. Once you've defined a library, the VIs are owned and managed by the library, and will complain like this if you attempt to rip them out and use the file away from its library. When you made a copy, presumably a file copy, your file inherited this library ownership -- which you probably want by the way.

The fix you probably want is to open the library and add this VI to it, just like the original one was. Then, once the VI says it belongs to the Library, and the Library claims to own the VI, everything will be happy and the error will go away. To avoid this, in the future, I believe it will work better to do a Save As so that LV will update the library too.

Post again if you need help finding the library or making the edit.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2010, 09:44
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Error: This VI claims to be part of a library

Quote:
Originally Posted by Greg McKaskle View Post
The fix you probably want is to open the library and add this VI to it, just like the original one was. Then, once the VI says it belongs to the Library, and the Library claims to own the VI, everything will be happy and the error will go away. To avoid this, in the future, I believe it will work better to do a Save As so that LV will update the library too.
Won't this have to be done every time that there is a LabVIEW update? That seems harder then it should be.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2010, 14:11
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Error: This VI claims to be part of a library

Quote:
Originally Posted by Greg McKaskle View Post
Like most computer error, it makes perfect sense once you know what it means.

-snip-

The fix you probably want is to open the library and add this VI to it, just like the original one was. Then, once the VI says it belongs to the Library, and the Library claims to own the VI, everything will be happy and the error will go away. To avoid this, in the future, I believe it will work better to do a Save As so that LV will update the library too.
True. It does make sense, even from just reading the error message, but I can't find anything about libraries or adding VIs back into them. I've searched through menus, right-clicked all over the place, gone back to the LV opening screen and can't find anything to do it or reassign a VI to a library.

The "Save As" dialog is probably the root of the problem. It is so complex and confusing that you're bound to make a mistake when attempting to copy anything using it. That's where this started, when I tried to make a copy of the VI - with a unique name - so I could customize it. Now neither the copy nor the original works.

Anyway, I fixed the problem by brute force, by copying the entire vi.lib folder from another computer (an installation only a couple days old) and replacing the whole folder. (Beware of copying into restricted directories in Windows Vista/7, you have to do it as Administrator, or else it puts them in your User folder - even with a user with admin privileges - and makes it look like they are where you copied them. I was suspicious that there was no "Overwrite existing file" message at first, then realized that was happening.)
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2010, 19:41
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Error: This VI claims to be part of a library

I'm not certain what the installer would do if you change the file but NI doesn't. But in general, modifying a file, in this case a library is not as robust as extending it by making your own library which wraps the current one and adds the new function. Or if the function doesn't need to access private elements, just add it on top of the library and don't add it.

As for updating the library, I don't love the Save As dialog either, but I'm pretty sure it does work. Glad you found a way to get it going.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NEW 200+ Part Community CAD Library R.C. General Forum 35 12-08-2009 16:56
How do i make this part?? dfukuba Technical Discussion 20 11-05-2008 23:06
What part is this? neutrino15 Electrical 11 11-02-2008 20:12
Spirit claims Mars water prize JohnBoucher Chit-Chat 5 22-12-2004 00:23


All times are GMT -5. The time now is 11:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi