Agilent Technologies VEE Pro Guide de l'utilisateur Page 528

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 602
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 527
1 2 ... 523 524 525 526 527 528 529 530 531 532 533 ... 601 602

Commentaires sur ces manuels

Pas de commentaire