Structures in LabVIEW are graphical representations of the loops and case statements of text-based programming languages.

LabVIEW includes different types of structures that serve different purposes. You can find structures on the Structures palette (Functions » Structures) from the block diagram.

Table 28. Purpose of LabVIEW Structures
Structure Use Case Structure
Repeat blocks of code
  • Repeat a set number or until an error: For Loop
  • Repeat until a condition or until an error: While Loop
  • Repeat with time bounds and delays until a stop condition: Timed Loop
  • Repeat with time bounds and delays in order until a stop condition: Timed Loop With Frames
Execute all structure code in order
  • With all subdiagrams visible: Flat Sequence structure
  • With one subdiagram visible: Stacked Sequence structure
  • With time bounds and delays: Timed Sequence structure
Execute code conditionally
  • Based on values: Case structure
  • Based on events: Event structure
Disable code
  • Based on conditions: Conditional Disable structure
  • In specific blocks: Diagram Disable structure
  • Based on compilation results: Type Specialization structure
Increase memory efficiency In Place Element structure