Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Diagram Disable Structure

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Structures

Requires: Base Development System

Has one or more subdiagrams, or cases, of which only the Enabled subdiagram executes. Use the Diagram Disable structure to disable a section of the block diagram.

To scroll through the available subdiagrams, click the decrement and increment arrows in the selector label. After you create a Diagram Disable structure, you can add, duplicate, rearrange, or delete the subdiagrams.

Use the Conditional Disable structure when you want to disable specific sections of code on the block diagram based on some user-defined condition. Place a Diagram Disable structure around the code you want to disable. In the Enabled subdiagram, include any code that you want to enable in place of the code in the Disabled subdiagram. To execute the section of the block diagram you disabled, select the Disabled subdiagram, right-click the structure border, and select Remove Diagram Disable Structure from the shortcut menu.

When you select Remove Diagram Disable Structure, LabVIEW deletes objects in all subdiagrams except for the visible subdiagram.

Right-click the border of the Diagram Disable structure and select Replace with Conditional Disable Structure from the shortcut menu to switch to a Conditional Disable structure.

Example

Refer to the Diagram Disable Structure VI in the labview\examples\Structures\Disable Structures directory for an example of using the Diagram Disable Structure.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit