National Instruments BridgeVIEW Manual de usuario Pagina 260

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 455
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 259
Chapter 11 Loops and Charts
© National Instruments Corporation 11-21 BridgeVIEW User Manual
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
Vista de pagina 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 454 455

Comentarios a estos manuales

Sin comentarios