|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
|LabVIEW 2020 Help|
Owning Palette: Palette Editing VIs
Requires: Base Development System
Writes palette data to a palette file (.mnu).
|Caution If you use this VI to edit palettes in the labview\menus directory, LabVIEW does not save the edits in a copy of the original palettes. After you edit the palettes, you cannot revert to the original palettes.|
|application reference is a reference to a target. The default is the local computer. If the target is not the local computer, you must wire the application reference input to edit the Controls and Functions palette set. |
Create a project with the target you want to reference. Use the Project:Projects property to obtain the target reference from the project. When you have the target reference, use the Application property to obtain the application reference.
|palette path is the path, including the filename, of the palette file (.mnu). The filename must have a.mnu extension.|
|palette type determines whether the palette file (.mnu) contains data for the Controls palette or Functions palette. |
|palette data contains the data this VI writes to the palette file (.mnu). |
|error in describes error conditions that occur before this node runs. This input provides standard error in functionality.|
|error out contains error information. This output provides standard error out functionality.|
|item path is the path to the palette item or subpalette. item path accepts all type of paths. To create an empty slot on the palette, leave item path empty. If item path is empty, LabVIEW ignores any additional data in the items cluster. |
An item is not added to the palette if the item does not exist on your disk. If you still want to add the item, first ensure that the path provided is valid, and then append <<file not found>> to the end of the item path.
|library path (.lvlib) is the path of the library that contains the palette item. |
If the library does not exist on your disk, the item is added as a non-library item. If you still want to add the library item, first ensure that the path provided is valid, and then append <<file not found>> to the end of the library path.
|items describes the palette items or subpalettes on the palette. |
If you have not customized the data in the palette file, use the Read Palette VI to extract data to the palette file. After you edit the palette data, use the Refresh Palettes method to update the palettes programmatically.
|Note LabVIEW loads a separate palette set for each target. If you write to a palette set for a specific target without wiring the correct reference to the target using application reference, the path this VI stores in the palette file might be incorrect.|