Table Of Contents

Adding a Code Snippet to the Diagram

Version:
    Last Modified: April 10, 2020

    Use code snippets to drag sections of code onto your diagram.

    Before you begin, make sure you have any subVIs included in the code snippet in your project.
    1. Save the snippet to your machine.
      spd-note-note
      Note

      If you edit a snippet in an image editor, the editor will remove the VI information from the file and you will not be able to drop the snippet onto the diagram.

    2. Open your project and navigate to the diagram of the VI you want to add the snippet to.
    3. Drag the snippet from its location on your machine to the diagram. The code depicted in the snippet appears on the diagram.

    Recently Viewed Topics