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.
Save the snippet to your machine.
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.
Open your project and navigate to the diagram of the VI you want to add the
Drag the snippet from its location on your machine to the diagram.
The code depicted in the snippet appears on the diagram.