Loops and Other Structures

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

The following topics provide information about using structures, located on the Structures palette.

Structure Use Case Structure
Repeating blocks of code
  • A set number or until an error
For Loop
  • Until a condition or until an error
While Loop
  • With time bounds and delays until a stop condition
Timed Loop
  • With time bounds and delays in order until a stop condition
Timed Loop with Frames
Executing all 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
Executing code conditionally
  • Based on values
Case structure
  • Based on events
Event structure
Disabling code
  • Based on conditions
Conditional Disable structure
  • Of specific blocks
Diagram Disable structure
  • Based on compilation results
Type Specialization structure
Increasing memory efficiency In Place Element structure

(Windows) To view related topics, click the Locate button, shown at left, in the toolbar at the top of this window. The LabVIEW Help highlights this topic in the Contents tab so you can navigate the related topics.

Related Concepts

Controlling Repetitive Operations Using Loops

Executing One or More Sections of Code Using Structures

In Place Element Structures: Increasing Memory Efficiency

Controlling Timing in LabVIEW Applications

Case Structures: Executing a Section of Code Based on Input Values

Related How-To

Adding Structures to the Block Diagram

Resizing Structures

Adding Objects inside Structures

Replacing One Structure with Another Structure

Removing Structures without Deleting Objects in the Structure