Справочник Пользователя для National Instruments BridgeVIEW

Скачать
Страница из 455
Chapter 11
Loops and Charts
© National Instruments Corporation
11-21
The For Loop executes the diagram inside its border a predetermined 
number of times. The For Loop has two terminals, explained below.
Count terminal (an input terminal)—The count terminal specifies the 
number of times to execute the loop. 
Iteration terminal (an output terminal)—The iteration terminal contains the 
number of times the loop has executed.
The For Loop is equivalent to the following pseudocode:
For i = 0 to N-1
Execute Diagram Inside The Loop
The following illustration shows a For Loop that generates 100 random 
numbers and displays the points on a chart.
Numeric Conversion
Until now, all the numeric controls and indicators you have used have been 
double-precision, floating-point numbers represented with 32 bits. G, 
however, can represent numerics as integers (byte, word, or long) or 
floating-point numbers (single-, double-, or extended-precision). The 
default representation for a numeric is a double-precision, floating-point.
If you wire two terminals together that are of different data types, 
G converts one of the terminals to the same representation as the other 
Loop Count
Numerical Input
Numerical 
Output