Agilent Technologies VEE Pro Instrukcja Obsługi Strona 57

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 113
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 56
The VEE Pro 8 Fundamentals 1
Agilent VEE - Practical Graphical Programming 35
Developing a faster random number generator
1 Open your VEE Pro 8 program and select Menu Bar => Flow => Start;
place this object in the upper left corner.
2 Select Menu Bar => Flow => Do; place this object below Start.
3 Select Menu Bar => Device => Timer; place it to the right of Start;
change its title bar to Elapsed Time.
4 Select Menu Bar => Device => Formula; place it below the three objects;
change its title bar to Random(0,10); change its edit area to
Randomize(ramp(12,0,9),0,10); right click on the object and select Delete
Terminal to delete its input terminal.
5 Select Menu Bar => Display => Logging AlphaNumeric; place it to the
right of the Formula object; change its title bar to Random Numbers.
6 Connect the terminals as follows: bottom of Start to the top of Do;
bottom of Do to the top of Random(0,10); the right- hand terminal of Do
to the top input of Elapsed Time; the bottom input of Elapsed Time to
the bottom of Random Numbers; and the Result of Random(0,10) to the
input of Random Numbers. Run this program. It should look like Figure
1- 24.
Figure 1-24 A faster random number generator implementation
7 Save this program as EXER01.4a. Note the differences in Elapsed Time
between this exercise and EXER01.4.
Przeglądanie stron 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 112 113

Komentarze do niniejszej Instrukcji

Brak uwag