Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Disabling Sections of Block Diagrams

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-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.

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 for an example of using the Diagram Disable structure.


Resources


 

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