A Conditional Disable structure executes one subdiagram depending on the configuration of the condition, which can include the platform and other user-defined symbols. If you use the Conditional Disable structure in a LabVIEW project, you can create and define symbols using the Conditional Disable Symbols page. If you use the Conditional Disable structure in a VI outside of a LabVIEW project, TARGET_TYPE is the only symbol available.
Complete the following steps to create a Conditional Disable structure.
![]() |
Note You can create and configure conditional disable symbols that are specific to a target by right-clicking the target in the Project Explorer window and selecting Properties from the shortcut menu. You then can select Conditional Disable Symbols from the Category list to display the Conditional Disable Symbols page. |
![]() |
Note TARGET_TYPE is the only symbol available if you use the Conditional Disable structure in a VI outside of a LabVIEW project. If you use the Conditional Disable structure in a LabVIEW project, you can define additional symbols using the Conditional Disable Symbols page. Refer to step 2 of this procedure for more information about creating conditional disable symbols. |
![]() |
Note If you want to disable a section of code on the block diagram so that it does not compile at runtime, use the Diagram Disable structure. Right-click the border of the Conditional Disable structure and select Change to Diagram Disable Structure from the shortcut menu to switch to a Diagram Disable structure. |
Refer to the Conditional Disable Structure VI in the labview\examples\general\disable structures\ directory for an example of using Conditional Disable structures.