LabVIEW Shortcut Menu Plug-Ins

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequence Loop Shortcut Menu

This tool assists in quickly adding or removing cases inside a Sequence Loop. Further information on the Sequence Loop design pattern, and a downloadable template, can be found here.

 

This shortcut menu plugin adds a new sub-menu for any case structure that is part of a Sequence Loop. The new shortcut menu items are shown in the following figure:

 SequenceLoopRC.png

The new menu items have the following behaviors:

Add Case After and Renumber

Adds a case after the current visible frame of the Case Structure and renames the cases to preserve continuity of the names/numbers. For example, if case 2 of a Case Structure with cases 1, 2, 3, 4, Default is selected when you invoke this menu item, the Case Structure frames get renumbered to 1, 2, 3, 4, 5, Default. Case 3 is the new case that just got added; former case 3 is now case 4 and so on. If the current cases are numbered incorrectly a prompt asks you whether to proceed. If you select the Default case this item is disabled and greyed out on the shortcut menu. 

Add Case Before and Renumber

Adds a case before the current visible frame of the Case Structure and renames the cases to preserve continuity of the names/numbers. For example, if case 2 of a Case Structure with cases 1, 2, 3, 4, Default is selected when you invoke this menu item, the Case Structure frames get renumbered to 1, 2, 3, 4, 5, Default. Case 2 is the new case that just got added; former case 2 is now case 3, and so on. If the current cases are numbered incorrectly a prompt asks you whether to proceed.

Delete This Case and Renumber

Removes the currently visible case and renumbers the cases to preserve continuity. If the current cases are numbered incorrectly a prompt asks you whether to proceed. If you select the Default case this item is disabled and greyed out on the shortcut menu.

Renumber Cases (1 ,2, …, N, Default)

Renumbers the Case Structure frame names with no respect to the frame contents. Renumber Cases maintains the current order of the cases. Use this function primarily in tandem with the existing LabVIEW option to rearrange cases, to swap the execution order of cases, or to repair Sequence Loops that were manually edited with the standard LabVIEW menu operations. Renumber Cases overwrites existing frame names without prompting.

Additional details about this plugin

  • The menu items will not appear unless the Case Structure is driven by the iteration terminal of the While Loop, and an Increment function is included. See the link to the design pattern for reasoning behind the inclusion of the Increment function.

Attachment is saved in LabVIEW 2015.

For installation instructions, go here.

 

Alex W.