Monday, 11 September 2017

Chapter 2: Controlling the Speed of Execution


To plot the points on the waveform graph more slowly, you can add a time
delay to the block diagram.
Complete the following steps to control the speed at which the VI runs.
1. On the block diagram, search for the Time Delay Express VI, shown at
left, on the Functions palette and place it inside the While Loop.
You can use the Time Delay Express VI to control the execution rate
of the VI.

2. Enter 0.25 in the Time delay (seconds) text box.
This time delay specifies how fast the loop runs. With a 0.25 second
time delay, the loop iterates once every quarter of a second.

3. Click the OK button to save the current configuration and close the
Configure Time Delay dialog box.

4. Display the front panel and run the VI.

5. Click the Enable switch and examine the change on the graph.
If the Enable switch is on, the graph displays the reduced signal. If the
Enable switch is off, the graph does not display the reduced signal.

6. Click the STOP button to stop the VI

No comments:

Post a Comment