Technical data

30 Agilent VEE - Practical Graphical Programming
1 The VEE Pro 8 Fundamentals
Exercise 1.4 - Generating Random Numbers for Test
Development
This exercise will show you how to create a program that generates
random numbers, displays them, and indicates the total time required to
both generate and display the values.
Open VEE Pro; clear your Work Area, maximize Main; toggle Program
Explorer off.
Devising a random number generator
1 Select Menu Bar => Flow => Start; place it in the upper-left of your
screen.
2 Select Menu Bar => Flow => Do; place it under Start (or in the
upper- left of your screen).
3 Connect the output of Start to the input (top pin) of Do.
4 Select Menu Bar => Flow => Repeat => For Count; place it under Do.
NOTE
Many programmers avoid using the Start button; they prefer to use the
Run button only; you may prefer to begin with step 2.
NOTE
Once the Start button is placed, it is moved by using the mouse right button.
NOTE
The Do object is used to allow monitoring of the time for the program to run.
NOTE
The value in the object "For Count" can be changed, depending upon the number of
random numbers desired.