8. Execution Structures

  • Programming with Loops in LabVIEW
    LabVIEW uses graphical loop structures like While Loops and For Loops to repeat section of code.
  • LabVIEW For Loops
    Learn how to use NI LabVIEW For Loops to execute a piece of code a predetermined number of times. 
  • LabVIEW Case Structures
    You can use LabVIEW Case Structures to programmatically execute sections of graphical code based on certain conditions.  This is similar to “if… then… else…” statements in other programming languages.
  • LabVIEW Shift Registers
    Explore how shift registers in NI LabVIEW software provide a way to pass data between loop iterations. Discover how you can use them to perform running calculations such as moving averages.
  • Programming with State Machines in LabVIEW
    LabVIEW developers use  state machine architectures to build applications quickly.

Before you Begin

Execution structures contain sections of graphical code that control how and when the code inside runs. The most common execution structures are While Loops, For Loops, and Case structures. With these structures, you can run sections of code multiple times or execute a different section of code based on a condition. This module explains the functionality of these structures and when they should be used in NI LabVIEW software.

Detailed Explanation

Cumulative Exercise and Exam: LabVIEW

Assess your understanding of programming within the LabVIEW environment by completing the LabVIEW Basics Exercise. This exercise is recommended after completing the seven modules found in the LabVIEW Basic Concepts section. The exercise involves building a calculator in LabVIEW.

Start the exercise

Begin the exam

What Do You Want to Learn Next?