Agilent Technologies VEE Pro Guida Utente Pagina 528

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 602
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 527
500 VEE User’s Guide
Appendix
Figure 278 Apple Bagger, Solution 1
Key Points
Optimal Solutions: To optimize the performance of programs,
use fewer objects, if possible. This solution uses six objects.
The program could also be implemented with 10 objects, as
Figure 279 shows.
Until Break and Break Objects: Use these objects for loops that
require testing a condition. In this example, the loop should
stop when the total weight of the apples is greater than 10
pounds.
Accumulator: Use the Accumulator to keep a running total.
Counter: Use the Counter to keep a running count. In this
example, the Counter is used to track the total number of apples
in the basket. Note that when the total weight is over 10, only
the Then pin fires on the If/Then/Else object giving the correct
answer in the Counter.
Solution 2—Apple Bagger
Figure 279 gives another solution using more objects.
Vedere la pagina 527
1 2 ... 523 524 525 526 527 528 529 530 531 532 533 ... 601 602

Commenti su questo manuale

Nessun commento