Executing One or More Sections of Code Using Structures
- Updated2026-03-31
- 1 minute(s) read
The following structures contain multiple subdiagrams. A subdiagram is a section of code inside the structure.
- Case structure
- Disable structure
- Event structure
- In Place Element structure
- Sequence structure
Related Topics
- Adding, duplicating, moving between, deleting, and rearranging subdiagrams
- Specifying values of case subdiagrams on Case structures
- Passing data through frames of Flat Sequence structures
- Passing data through frames of Stacked Sequence structures
- Selecting symbols and values for Conditional Disable structures
Related Information
- Case Structures: Executing a Section of Code Based on Input Values
Use the LabVIEW Case structure to run one subdiagram based on a selector input value. The behavior of the Case structure is similar to switch statements or if...then...else statements in text-based languages.
- Disable Structures: Preventing Code from Executing
- In Place Element Structures: Increasing Memory Efficiency
- Sequence Structures: Executing Sections of Code Sequentially
- Adding and Duplicating Subdiagrams
- Moving between Subdiagrams
- Deleting Subdiagrams
- Rearranging Subdiagrams
- Creating a Case Structure to Execute Conditional Code
- Passing Data through Frames of a Flat Sequence Structure
- Passing Data through Frames of a Stacked Sequence Structure
- Configuring Conditions for Conditional Disable Structures