From 09:00 PM Friday, August 7 - 10:30 AM CST Saturday, August 8, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents

Adding Code Snippets to a Custom Palette

Version:
    Last Modified: February 28, 2020

    Add items to a palette file (.gpal) that include chunks of code from your diagram.

    Before you begin, complete the following prerequisite tasks:
    1. Create a VI within your project.
    2. Create a library.
    3. Add the VI to the library.
    4. On the Document tab of a Library document, click Create palette file.
    5. Select G diagram palette from the palette type drop-down menu.
    6. Open your palette file (.gpal). Select your VI.
    7. In the Item tab, under Behavior, select Place diagram contents. The block of diagram code from the VI will appear on the diagram in projects that include your custom .gpal.
      spd-note-note
      Note  

      You cannot include a VI in an application if any of the exported VIs in the library are broken. If a VI in your library containing a snippet is broken, disable the VI's Export box before building the package.


    Recently Viewed Topics