Rearranging Subdiagrams

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

Complete the following steps to rearrange subdiagrams for most structures:

  1. Right-click the structure border and select Rearrange Cases or Rearrange Subdiagrams from the shortcut menu to display the Rearrange Cases dialog box.
  2. Select a case or subdiagram in the Case List and drag it to a new location. A horizontal line appears to indicate where to insert the case or subdiagram in the list. You also can click the Sort button to rearrange the cases or subdiagrams alphabetically.
  3. Click the OK button.

For Case structures, you also can rearrange the cases by swapping or shifting the cases.

To rearrange the frames in a Stacked Sequence structure, right-click the structure border, select Make This Frame, and select a new frame number from the shortcut menu.

Consider the following issues when you rearrange the subdiagrams of a structure:

  • You can rearrange the cases in a Case structure with three or more cases. You can rearrange the cases in an Event structure with two or more cases. You can rearrange the subdiagrams in a disable structure with two or more subdiagrams.
  • When you rearrange the subdiagrams in a Conditional Disable structure, multiple subdiagrams can be TRUE, but LabVIEW compiles and executes only the first subdiagram that is TRUE.
  • Rearranging the subdiagrams in a Type Specialization structure affects the subdiagram labels and how the VI runs. This is because the Type Specialization structure attempts to compile each subdiagram in order and declines subdiagrams with syntax errors. It accepts the first subdiagram with no syntax error and ignores the remaining subdiagrams.

    In the following example, the Type Specialization structure has subdiagrams A, B, C, and D. It accepts subdiagram C and ignores subdiagram D. If you switch subdiagrams C and D, the indexes of subdiagrams C and D get switched. The structure accepts subdiagram D and ignores subdiagram C because the structure compiles subdiagram D with no error before attempting to compile subdiagram C.


Not Helpful