- Clean your driver's LabVIEW project directories for broken or erroneous palette files (*.mnu).
- Open the driver's associated LabVIEW project folder located in <LabVIEW>\instr.lib.
- Make sure that there is only one .mnu file in each folder for which you want a subpalette generated. The .mnu files should have names that match their parent folder's name.
Note: Sub-folders more than one level below the project's Public folder, such as the Low-Level folder, have .mnu files which follow this naming convention: <Parent Folder Name>_<Current Folder Name>
- Make sure there is only one dir.mnu file in the Public folder of the project.
- Open the .lvlib file. Right-click on the top-level file and select Properties to navigate to the Project Library Properties.
- In the General Settings tab, make sure that the Default Palette is set to dir.mnu.
- Navigate to your instrument driver files on your file system. Make sure that they are organized into a hierarchy of folders that match the palette structure you want. For example, for the Configure palette, the VIs should be placed in a folder with path <LabVIEW>\instr.lib\<instrument driver project folder>\Public\Configure.
- Make sure your LabVIEW project reflects the actual file system on disk. One way you can do this is to remove the Public virtual folder and add a snapshot of the updated folder back to the project. Refer to Adding Folders to a Project for more information.
- In LabVIEW, navigate to Tools >> Advanced >> Edit Palette Set. The Functions palette, Controls palette, and Edit Controls and Functions Palette Set window appears.
- In the Functions palette, navigate to the Instrument I/O palette. Right-click on the Instruments Drivers palette and un-check the Synchronize With Directory option.
- Compare your file system to your existing palette structure. Make sure that there is a subpalette for every folder in your instrument driver project and all the VIs in the folder are present in the palette.
To add VIs which are present in the folder, but not in the subpalette: right-click on a blank part of the subpalette and select Insert >> VI(s).
To add a subpalette for a folder that is on your file system:
- Right-click on the parent palette and select Insert >> Subpalette.
- In the Insert Subpalette window, select Create a new palette file (.mnu).
- Save the new .mnu file in the folder with the VIs which will be added to this subpalette. Name the subpalette after the folder that contains VIs which will go into it.
- Add the VIs from the folder to the new subpalette.
- Once you are satisfied with your palette structure, click Save Changes in the Edit Controls and Functions Palette Set window. Your palette set should now have the structure you made in your file system.