‎10-22-2018 07:54 AM
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 !
‎10-22-2018 08:00 AM
Menu -> File -> Save As ...
‎10-22-2018 08:08 AM
From the project window, you can right-click on the library and there should be an option to "Rename..".
‎10-22-2018 08:26 AM
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 !
‎10-22-2018 12:14 PM
Did you read the posts before duplicating your msg?
‎10-22-2018 02:42 PM
@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.
‎10-23-2018 08:00 AM
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 ?
‎10-23-2018 10:43 AM - edited ‎10-23-2018 10:45 AM
@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.)