Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Changing the Continuation Behavior of Loops

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

If the conditional terminal of a While Loop, a For Loop, or a (Real-Time, Windows) Timed Loop is Continue if True , the loop executes its subdiagram until the conditional terminal receives a FALSE value. If the conditional terminal is Stop if True , the loop executes its subdiagram until the conditional terminal receives a TRUE value.

Note  A For Loop with a conditional terminal executes until the conditional terminal receives the stop value or until the set number of iterations completes, whichever happens first.

Complete the following steps to change the continuation behavior of a loop with a conditional terminal.

  1. Right-click the conditional terminal. In a While Loop or a Timed Loop, you also can right-click the loop border.
  2. Select Stop if True or Continue if True from the shortcut menu.

You also can use the Operating tool to click the conditional terminal to change the condition.

You must wire a Boolean value or an error cluster to the conditional terminal in a While Loop or a For Loop with a conditional terminal.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit