LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rename LVLIB

Hi guys,

So I'm using LV2015. I have a Library, let's say alpha.lvlib. which I want to rename to beta.lvlib.

This Library is used in many other VIs in my program. I tried to simply go to my folder project and rename it but then when I would load the whole project LABVIEW would say it does not find alpha.lvlib. I tried to find an option on LabView to rename that Library but I did not find anything.

I also tried deleting the alpha.lvlib and adding the beta.lvlib in the project but it did not work neither.

 

What would be the proper way to rename my Library?

Thank you very much !

0 Kudos
Message 1 of 8
(3,962 Views)

Menu -> File -> Save As ...

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 8
(3,957 Views)

From the project window, you can right-click on the library and there should be an option to "Rename..".


GCentral
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
Message 3 of 8
(3,949 Views)

Hi guys,

So I'm using LV2015. I have a Library, let's say alpha.lvlib. which I want to rename to beta.lvlib.

This Library is used in many other VIs in my program. I tried to simply go to my folder project and rename it but then when I would load the whole project LABVIEW would say it does not find alpha.lvlib. I tried to find an option on LabView to rename that Library but I did not find anything.

I also tried deleting the alpha.lvlib and adding the beta.lvlib in the project but it did not work neither.

 

What would be the proper way to rename my Library?

Thank you very much !

0 Kudos
Message 4 of 8
(3,943 Views)

Did you read the posts before duplicating your msg?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 8
(3,921 Views)

 


@billko wrote:

Did you read the posts before duplicating your msg?


To be fair they didn't really address the issue/question. If you are trying to rename a library that is used by other code modules, you need to rename it in the project explorer that contains the other code modules that are calling it. If you rename the library then try and open up another project that uses it, that project code has no way of knowing that you renamed the library, so you will need to manually go back in re-link all the code. If you rename it within the same project, the calling code will be updated to use the new library name.

0 Kudos
Message 6 of 8
(3,912 Views)

The repost was a mistake. 

 

Thanks for all the answers guys ! I changed the name in the project file explorer and it seems to work fine,even though @paul.ross seems right.

Maybe labview changes all the references to the library when you change its name ?

 

0 Kudos
Message 7 of 8
(3,891 Views)

@paul.r wrote:

 


@billko wrote:

Did you read the posts before duplicating your msg?


To be fair they didn't really address the issue/question. If you are trying to rename a library that is used by other code modules, you need to rename it in the project explorer that contains the other code modules that are calling it. If you rename the library then try and open up another project that uses it, that project code has no way of knowing that you renamed the library, so you will need to manually go back in re-link all the code. If you rename it within the same project, the calling code will be updated to use the new library name.


To be really fair, the OP never mentioned other projects, just "many other VIs in my program", and not "many other projects in my program".  😉

 

It's never an easy task to rename a library that's used in other projects, though.  I think, if I remember correctly, that if you have all those projects open, when you update one library instance, the others will ask to be updated, too.  It's been so long since I've run into this issue that I can't remember if it's true or not.  (I'm too afraid to try it out right now.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 8 of 8
(3,880 Views)