Download LabVIEW Quickstart Guide

Transcript
Chapter 2
Virtual Instruments
4
5
4.
Select While Loop from the Functions»Structures subpalette. The
While Loop runs all code within its boundaries while the value on
its conditional terminal remains TRUE. When the value changes to
FALSE, the While Loop exits.
5.
Place your pointer in the position on the block diagram where you
want to anchor the top left corner of the loop. Drag the loop
diagonally to enclose the Random Number function, the Power
toggle switch, and the Random Plot chart.
conditional terminal
Tip
If your While Loop did not enclose all of the code, right-click on the
border of the loop to access the pop-up menu (on the Macintosh,
command-click on the border of the loop). Choose Remove While Loop
from this pop-up menu. Then repeat steps four and five to re-create the
loop so it encloses all the code.
© National Instruments Corporation
2-9
LabVIEW QuickStart Guide