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.

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.

After you create a Diagram 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 Diagram Disable structure allows you to disable a section of a block diagram. To disable specific sections of code on the block diagram based on some user-defined condition, use the Conditional Disable structure. To disable specific sections of code on the block diagram based on compilation results, use the Type Specialization structure.

To switch to a Conditional Disable or Type Specialization structure, right-click the border of the Diagram Disable structure and select Replace with Conditional Disable Structure or Replace with Type Specialization Structurefrom the shortcut menu.


icon

FPGA Module Details

The following details apply when you use this object in an FPGA VI.

Note The following details are subject to change with each version of the LabVIEW FPGA Module.
Single-Cycle Timed Loop Supported.
Usage When you use the Diagram Disable structure in an FPGA VI, front panel objects inside the structure do compile.
Timing Because the objects inside the Diagram Disable structure do not compile on the FPGA, this structure takes no time to execute.
Resources Each front panel object in a Diagram Disable structure consumes FPGA resources. Arrays controls appearing as top-level front panel objects consume significant space on the FPGA because each bit in the array uses a flip-flop on the FPGA. Consider replacing array controls with FIFOs or memory items to transfer data.

Examples

Refer to the following example files included with LabVIEW.

  • labview\examples\Structures\Disable Structures\Diagram Disable Structure.vi