San Diego State University logo
ME 205

The Simulation of Physical Systems

 

LabView Tutorial 3 - Loops



In this module you will learn about Loops. Loops allow a program to repeat commands over and over, either forever or until a certain condition is met.

The first loop you will learn is the While Loop, which repeats commands a certain pre-determined number of times. The second loop you will learn is the For Loop, which repeats commands until told, via a control or instruction, to stop the iteration.

This module will cover:

  • The While Loop
    • Definition
    • How to Create a While Loop
    • While Loop Components
      • The While Loop
      • The Conditional Indicator
      • The Iteration Indicator
      • Controlling a While Loop
  • The For Loop
    • Definition
    • How to Create a For Loop
    • For Loop Components
      • The For Loop
      • The Count Terminal
      • The Iteration Indicator

Proceed to the Tutorial ->