For loops, For loops -20, End of activity 11-6. for loops – National Instruments BridgeVIEW User Manual

Page 259

Advertising
background image

Chapter 11

Loops and Charts

BridgeVIEW User Manual

11-20

© National Instruments Corporation

9.

Run the VI.

10. Save the VI as

Multiple Random Plot.vi

in the

BridgeVIEW\

Activity

directory.

End of Activity 11-6.

For Loops

A For Loop executes a section of code a defined number of times. It is
resizable, and, like the While Loop, is not dropped on the block diagram
immediately. Instead, a small icon representing the For Loop appears in the
block diagram, and you have the opportunity to size and position it. To do
so, first click in an area above and to the left of all the terminals. While
holding down the mouse button, drag out a rectangle that encompasses the
terminals you want to place inside the For Loop. When you release the
mouse button, G creates a For Loop of the size and position you selected.
You place the For Loop on the block diagram by selecting it from
Functions»Structures.

Advertising