Removing Structures without Deleting Items in a Structure

Complete the following steps to remove a structure (For Loop, While Loop, Case structure, or Sequence structure) without losing the contents of the structure.

  1. Right-click the structure you want to remove.
  2. Select Remove For Loop from the shortcut menu or the similar option for any of the other structures.

With For Loops and While Loops, LabVIEW copies the contents of the loop to the block diagram and automatically connects any elements wired through tunnels.

With Case structures or Sequence structures, removing the structure preserves only the current case or frame and any front panel terminals. All other cases or frames are deleted. LabVIEW warns you that you will lose hidden cases or frames and asks you if you want to cancel the operation.