LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add packed library on palette set

Solved!
Go to solution

Hi,

 

I am unable to add packed library to pallete set. Can someone provide information on how to do that?

 

Thanks,
Andrej 

0 Kudos
Message 1 of 7
(15,684 Views)
Solution
Accepted by topic author andrej

Andrej,

 

starting with LV 2010, you can use packed libraries to encapsulate functions and supply them on the palettes. The way to get there is somehow a little tricky, so here a short description on how to do that:

 

1. Build your LV library (lvlib) as used, please remember to set prudent item settings (private vs. public). Public items will be "exported" in the packed library whereas private are not.

2. Open the palette edit tool via Tools >> Advanced >> Edit Palette Set

3. Go to the subpalette you want to include your custom palette (exported items) and right click on the parent palette. Select Insert >> Subpalette.

4. In the dialog, select Create a new palette file (.mnu). Select a path contained in your lvlib.

5. Customize your subpalette as desired. Please place only public items on the palette.

6. Save the changes and add the new .mnu file to your lvlib.

7. Build the packed library. Make sure, that the .mnu file is part of the lvlibp (by default it is already selected).

8. Copy the lvlibp to the target system.

9. Select Tools >> Advanced >> Edit Palette Set in the target. Browse to the palette you want to have as parent for your lvlibp.

10. Right click and select Insert >> Subpalette. On the dialog, select Link to a palette file in a project library. Select your lvlibp file and acknowledge the following dialog.

11. Save changes and use your lvlibp on the target.

 

That should be a comprehensive step-by-step list for this request.

Hope this helps,

 

Norbert

 

[EDIT] Corrected some typos.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 7
(15,660 Views)

Hi Andrej

 

I would just add that if you can not use your packed library because you haven´t got the .mnu file created before building the library and you would like to use the library in a project you can add it to the project and use it from there.

0 Kudos
Message 3 of 7
(15,628 Views)

Thank you very much for your help.

0 Kudos
Message 4 of 7
(15,613 Views)

When I follow the steps above I get the following error at step10 after I selected my packed library:

Exception: Access violation (0xC0000005) at EIP=0x005F337C

Did anyone have the same issue?

 

PS I am using LV2011 SP1 f1

0 Kudos
Message 5 of 7
(15,343 Views)

I am trying to follow those steps and got the error "The library you selected does not contain any valid menu files" at the last step. I checked the building options for my lvlibp and the mnu file is included, however after I double clicked the lvlibp it does not show the mnu. Is there any extra step?

 

Here is what I did:

1. Create a B.lvlib and export BFunc1.vi and BFunc2.vi. Go to LV, create a B.mnu file contains BFunc1 and BFunc2.   

2. Move the B.mnu to project folder and add it into B.lvlib. Now compile B.lvlib into a lvlipb.  

3. copy the B.lvlib to my user.lib folder.  

4. Try to edit palette set, choose "link to palette file in a project lib" and I got error "The library you selected does not contain any valid menu files".

0 Kudos
Message 6 of 7
(15,107 Views)

Are lvlib files supposed to contain .mnu files?  Could they possibly be missing from a lvlib file?  See below for details.

 

By the number of kudos this answer has, I'd assume these step worked for many users.  However, they failed for me using LabVIEW 2020 SP1.  Everything goes well until I get to step 4. When I select "Create a new palette file (.mnu)" (see first image below) it asks me for a file name (see second image below) and then a "Palette item name" (see third image below) before adding the icon to the palette.  If I browse to the .lvlib file at this stage, I get the error message, "the library you selected does not contain any valid menu files".  I'm not exactly sure what "Select a path contained in your lvlib".  I don't know how to select a "path contained in my lblib" and I wonder if perhaps the author intended to say, "Select the path your lvlib is contained in".  As I said above, this doesn't work either and I don't see any way to associate a new palette menu item with a lvlib file.

 

create a new palette.png

 

create new menu file2.png

 

submenu name.png

 

 

 

 

0 Kudos
Message 7 of 7
(3,901 Views)