LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you rename a member of a library?

Solved!
Go to solution
I just upgraded from LabVIEW 8.2.1 to 8.6. The first vi I loaded changed how drivers for an Agilent E3647A power supply worked. I was able to correct the problem, and got my vi working. I then tried to build an executable with the project file from 8.2.1. It said that there were problems because the initialization and closing vi's from both the Agilent E3647A, and the HP34401A libraries were both named "initialize.vi" and "close.vi". It wanted me to rename one set so it wouldn't put two different vi's with the same name into the same target. This makes sense, but how do you do it? I tried going into Program Files/National Instruments/LabVIEW 8.6/inst.lib/Agilent 34401/Public, and renaming the initialize.vi and close.vi. I then closed and restarted LabVIEW hoping to replace the two vi's with the ones I had just renamed, but they showed up as question marks in the menus. I tried to replace them with select a vi, and browsing to the renamed vi's, but they cam in as broken with the explanation that they were supposed to be a part of a library, but weren't. I closed everything without saving, renamed the vi's to the original name, restarted LabVIEW, and got back to my starting point. Up to this point I have never needed to create or change a library, so any help would be welcomed.
0 Kudos
Message 1 of 4
(2,987 Views)
Solution
Accepted by topic author SciManStev
I found the answer. I had not used the LLB Manager before, and after multiple wrong turns, I figured out how to rename vi's within the library. Now that I have made the plunge, I will learn whatever I need to know and add a new tool to my own knowledge base.
0 Kudos
Message 2 of 4
(2,968 Views)

I don't know why you're using the LLB manager, as the drivers you downloaded were the project-style version, and so the drivers are contained within a project library (.lvlib), not an LLB. I don't understand why you're getting the message you're getting since the names should be differentiated based on the name of the project library. That's the whole point of libraries. If you absolutely have to rename one of the VIs then you need to open the project library (look for the .lvlib file in the inst.lib/Agilent 34401 directory, and the corresponding one for the other instrument) and then open the VI from the project library explorer window. Do a File->Save As, and select "Substitute copy for original". NOTE: This will break your code if you need to reinstall the instrument driver. You're better off putting the library into your project folder since you are modifying code. 

Message 3 of 4
(2,964 Views)
Thank you so much for your reply! I feel really ignorant about this issue, and I will add what you just told me to what I just learned. I tried the help files, but couldn't find what I was looking for. I just kept trying one thing after another until something worked. At any rate I can now compile executables without an error, so I am moving on to see what differences crop up with my database connections as a result of the upgrade from 8.2.1 to 8.6. Thanks again!
0 Kudos
Message 4 of 4
(2,961 Views)