The following time-saving tools can help you edit diagram code more efficiently.
Task | Tips and Tricks |
---|---|
Create constants, controls, and indicators using the shortcut menu. |
You can save time when adding constants, controls, and indicators by using the shortcut menu to add the object instead of navigating the palette. Right-click any input or output of a node and select one of the Create options from the shortcut menu. For example, to create a constant, select the Create Constant icon. |
You can use the Create SubVI from Selection option on the document toolbar to automatically generate a new subVI from a section of existing code. Refer to Creating a SubVI from a Section of Existing Code for more information. |
Task | Tips and Tricks |
---|---|
Replace a diagram object with a similar object without using the palette. |
You can replace an object on the diagram, such as a node, terminal, or constant, with a different type of the same object without navigating the palette. For example, you can replace an Add node with a Subtract node, a Numeric Terminal with a Boolean Terminal, or a True Constant with a False Constant. Right-click the object, select Replace from the shortcut menu, and select the desired replacement object. |
Remove a structure without deleting objects in the structure. |
You can remove a loop, Case Structure, or Flat Sequence from the diagram without deleting the code it contains. Right-click the border of the structure and select Remove Name of Structure from the shortcut menu. |