National Instruments BridgeVIEW Manual De Usuario

Descargar
Página de 455
© National Instruments Corporation
11-1
11
Loops and Charts
This chapter introduces structures and explains the basic concepts of charts, 
the While Loop, and the For Loop. This chapter also provides activities that 
illustrate how to accomplish the following: 
Learn about different chart modes
Use a While Loop and a chart
Change the mechanical action of a Boolean switch
Control loop timing
Use a shift register
Create a multiplot chart and customize your trend
Use a For Loop
What is a Structure?
structure is a program control element. Structures control the flow of 
data in a VI. G has five structures: the While Loop, the For Loop, the Case 
structure, the Sequence structure, and the Formula Node. This chapter 
introduces the While Loop and For Loop structures along with the chart and 
the shift register. The Case structure, Sequence structure, and Formula 
Node are explained in Chapter 12, 
While and For Loops are basic structures for programming with G, so you 
can find them in most of the G examples as well as the activities in this 
manual. You also can find more information on loops in Chapter 19, 
Structures, in the G Programming Reference Manual.
For examples of structures, see 
G Examples\General\structs.llb
For examples of charts, see
 G Examples\General\Graphs\
charts.llb