Adding and Duplicating 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

Right-click a structure border and select Add Case (or Frame or Subdiagram) After or Before, if available, from the shortcut menu to add a subdiagram. You also can press the <Shift-Enter> keys in the selector label to add a subdiagram to a structure.

Complete the following steps to make a copy of the visible subdiagram in a Case, Stacked Sequence, Conditional Disable, Diagram Disable, or Type Specialization structure and insert it after the original subdiagram.

  1. Move to the subdiagram you want to duplicate.
  2. Right-click the structure border and select Duplicate Case (or Frame or Subdiagram) from the shortcut menu. The duplicate subdiagram contains all objects from the original subdiagram except block diagram terminals that correspond to front panel objects.
Note Note  You also can press the <Ctrl-Shift-Enter> keys in the case selector label to duplicate the visible subdiagram of a Case structure.
  1. If you are configuring a Conditional Disable structure, right-click the structure border and select Duplicate Subdiagram from the shortcut menu to display the Configure Condition dialog box. Select a Symbol and enter a Value in the Configure Condition dialog box.
Note Note  If you do not use the Conditional Disable structure in a LabVIEW project, RUN_TIME_ENGINE, TARGET_BITNESS, and TARGET_TYPE are the only symbols available. If you use the Conditional Disable structure in a LabVIEW project, you also can create and define symbols using the Conditional Disable Symbols page.

Consider the following issues when you add or duplicate a subdiagram:

  • When you add, delete, or rearrange frames in a Stacked Sequence structure, LabVIEW automatically adjusts the numbers in the frame labels.
  • When you add or delete frames in a Flat Sequence structure, the structure resizes automatically.
  • 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.
  • Adding or deleting 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.

    For example, the following Type Specialization structure has subdiagrams A, B, and C. It declines the first two subdiagrams and accepts the last subdiagram C (indexed 2). If you add subdiagram D before subdiagram C, the index of subdiagram C becomes 3. The structure accepts subdiagram D and ignores subdiagram C because the structure compiles subdiagram D with no error before attempting to compile subdiagram C.

  • You also can add or duplicate cases for event structures.

WAS THIS ARTICLE HELPFUL?

Not Helpful