|LabVIEW 2015 Help|
|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
Owning Palette: Structures
Requires: Base Development System
Has one or more subdiagrams, exactly one of which LabVIEW uses for the duration of execution, depending on the configuration of the conditions of the subdiagram. Use this structure when you want to disable specific sections of code on the block diagram based on some user-defined condition. Right-click the structure border to add or delete a subdiagram. When you add a subdiagram or right-click the structure border and select Edit Condition For This Subdiagram from the shortcut menu, you can configure conditions in the Configure Condition dialog box.
After you create a Conditional Disable structure, you can add, duplicate, rearrange, or delete the subdiagrams. To scroll through the available subdiagrams, click the decrement and increment arrows in the selector label. You also can remove the structure without deleting objects in the structure.
The Conditional Disable structure allows you to disable specific sections of code on the block diagram based on some user-defined condition. To disable specific sections of code on the block diagram based on compilation results, use the Type Specialization structure. To disable a section of a block diagram, use the Diagram Disable structure.
To switch to a Type Specialization or Diagram Disable structure, right-click the border of the Conditional Disable structure and select Replace with Type Specialization Structure or Replace with Diagram Disable Structure from the shortcut menu.
Refer to the Conditional Disable Structure VI in the labview\examples\Structures\Disable Structures directory for an example of using the Conditional Disable Structure.