Академический Документы
Профессиональный Документы
Культура Документы
This program is a MATLAB add-on tool, in the form of m-files, that helps students and engineers
to understand the complicated relationships among the following:
pole/zero maps
open-loop and closed-loop Bode plots
Nichols and Nyquist plots
open-loop and closed-loop time responses
root locus
output sensitivity plots
the continuous-time s-plane and the discrete-time z-plane
This tool is useful over a range from one micro-hertz to above one terahertz.
The pzgui m-files are available in a "zip" file through the following link:
http://people.rit.edu/maheee/pzgui/Download%20PZGUI%20Matlab%20toolbox.htm
The pzgui toolbox has been tested on all recent versions of MATLAB, and on version 6.5.
To install on your machine:
Unzip the files into a new subdirectory, e.g., \My Documents\Matlab\pzgui.
Then, from the drop-down menu on the Matlab window, select File Set Path.
In the user-interface window that comes up, select that subdirectory and click Add Folder.
You might want to save the new path when you close this user-interface window.
To run the programs in MATLAB:
After you have added the pzgui subdirectory to the MATLAB path,
to start up the tool, type pzgui at the MATLAB command prompt
Add a zero or a vector of zeros in the same way you add poles, except of course using controls
that are in the ZEROS frame.
Delete a zero in the same manner you delete a pole, except of course using controls that are in
the ZEROS frame.
Move a zero to a specified location in the same manner you move a pole, except of course us-
ing the GUI controls that are in the ZEROS frame.
Change the sample-period Ts of the discrete-time model using the text-window just below the
pure-delay text-window. When you start pzgui, the default value is Ts = 0.005 seconds, cor-
responding to a sample frequency of 200 Hz. The sample-period is needed, for example, if you
transform a continuous-time model into a discrete-time model.
Figure 2. The PZGUI OPTIONS menu has some very useful functions.
Background Color
If you want to print one of the figures, you will most likely want to select a white background
(which usually gives a more attractive print), and you might also want to hide all the user-
interface controls. Both of those things can be done by selecting from the four items at the top
of the "PZGUI OPTIONS" menu, shown in Fig. 2.
Fig. 4 shows the user-interface for the phase-lead design tool. If the sign of "Extreme Phase" is
negative, it becomes the "Phase-Lag" design tool. Any one of six parameters can be altered, and
the zpk design will be adjusted accordingly. Initially, all six of the parameters are blank.
Note that there is a checkbox labeled "DCgain = 1" that forces the gain to whatever value is re-
quired to achieve low-frequency gain of unity in the controller.
The "Apply" pushbutton causes the zero/pole/gain design to be "added in" to whatever the cur-
rent pzgui model may be. The "Preview" pushbutton shows a preview in all the plots.
Figure 5. More user-interface controls: the "Grid" and "Fix DC" checkboxes.
The Fix DC checkbox
When this checkbox is "on" (checked), the dc-gain will be held constant even as changes are
made to pole and zero locations. If there are poles or zeros at s = 0, then gain at extremely low
frequencies (but not zero) is held constant. Default checkbox value is "off".
The method used for the C-T to D-T transformation is the one currently selected in the "link me-
thod" menu, shown in Fig. 8. There are three methods available: (1) z=esT simply maps the lo-
cations of poles and zeros directly from the s-plane to the z-plane; (2) ZOH equiv computes the
zero-order-hold equivalent model; and (3) bilinear computes the bilinear (or Tustin) transforma-
tion. The link-method selection can be changed at any time; whenever the selection is changed,
all figures are recomputed and updated.
Figure 11. More user-interface controls: Checkboxes that create other plots.
Sensitivity
Standard output sensitivity magnitude plot (i.e., frequency-response magnitude of the output-
disturbance transmission path vs. frequency) of the closed-loop system obtained by simple
negative feedback of the open-loop model currently in the main pzgui.