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

Disabling Sections of Block Diagrams

LabVIEW 2012 Help

Edition Date: June 2012

Part Number: 371361J-01

»View Product Info

You can run a VI with a section of the block diagram disabled, similar to commenting out a section of code in a text-based programming language.

Complete the following steps to run a VI with a section of the block diagram disabled.

  1. Place a Diagram Disable structure around the nodes you want to disable. The default subdiagram is Disabled.
  2. In the Enabled subdiagram, include any code that you want to enable in place of the code in the Disabled subdiagram.
  3. Run the VI. Notice that only the code in the Enabled subdiagram is run.

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.

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

Refer to the Diagram Disable Structure VI in the labview\examples\general\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