To create a Subpalette, you will need to organise all of your custom VIs for the palette in a new folder. This folder should be located in <LabVIEW>\vi.lib.
Next, create a .mnu
file that will contain all of the information about the palette you want to distribute. To create a .mnu file, you need to open up LabVIEW and edit the palette set:
- Go to Tools >> Advanced >> Edit Palette Set...
- On the Functions palette, right-click in an empty space where you would like to add your Subpalette.
- Select Insert >> Subpalette.
- Select Create a new palette file (.mnu).
- Name your .mnu file and save it. Make a note of where you save the file because you will need it later.
- Name your Subpalette and press OK.
- Right-click on your new Subpalette's icon. Select Insert >> VI(s)...
- Browse to your folder in vi.lib to add your custom VIs.
- Save the changes to your palette set.
On the computer that will receive the palette:
- Place the folder containing the custom VIs in <LabVIEW>\vi.lib.
- Place the .mnu file in the <LabVIEW>\menus\Categories directory.
As an example, if you place the .mnu file in <LabVIEW>\menus\Categories\Programming, your palette will show up in the Programming palette.
Additional Information
The <LabVIEW>\vi.lib directory is the recommended directory for your VI library since it complies to the best practises for file hierarchy. For further information on best practises, see
Developing a VI-Based API .
Refer to
Creating a LabVIEW Palette for a step-by-step tutorial on how to use new and existing .mnu files to create Subpalettes.