St. Louis, Missouri
June 18, 2000
June 18, 2000
June 21, 2000
2153-5965
10
5.385.1 - 5.385.10
10.18260/1-2--8486
https://peer.asee.org/8486
923
Session 2520
Interactive Continuous and Discrete Step Response Using MATLAB GUI’s
Robert DeMoyer United States Naval Academy
Abstract
It is important in the study of classical feedback control to understand the correspondence between pole locations and time response. Quadratic poles are particularly important because many systems can be approximately characterized by a quadratic. This paper describes a program, written in MATLAB and using the Graphical User Interface (GUI), which permits the user to drag a quadratic pole in the s-plane and observe, in real time, the changing continuous step response. The program provides the student with the means to actually observe concepts presented in class, including s-plane lines of constant overshoot, time to peak, and settling time.
A second program is described which allows the student to drag a quadratic pole in the z-plane and to observe the corresponding discrete step response. In addition to overshoot, time to peak, and settling time, the number of samples per cycle are easily seen as the z-pole is moved. The sample time can be changed while the program is in execution. Before describing these programs, the paper discusses aspects of GUI program development.
I. Introduction
Many engineering faculty members have taught long enough to see computer programming evolve from batch processing, to timesharing, to PCs with character based operating systems, to PCs with windows based operating systems. In the earlier evolutions it was easy to write code, frequently in FORTRAN or Basic, to serve as an aid to engineering education. In the latest evolution there are many useful commercial programs written for engineering education, but most engineering faculty still would like to write programs of their own.
Programs written for window based operating systems usually contain Graphical User Interfaces, or GUIs. Someone contemplating writing code to produce GUIs might suspect that it is a complicated process, and it is. There are some languages which help to reduce the complication, such as Visual Basic and Visual C. However, these languages require programming at a rather low level. Frequently specialized libraries must be acquired as well. The capability of a high level language, such as MATLAB along with its toolboxes, is hard to ignore.
Along with MATLAB 4 came a number of demonstration programs with GUIs. The potential of combining GUIs with the enormous capability of MATLAB is enticing. However, an examination of the code for these programs is daunting. The code is largely devoted to the
DeMoyer, R. (2000, June), Interactive Continuous And Discrete Step Response Using Matlab Gui Paper presented at 2000 Annual Conference, St. Louis, Missouri. 10.18260/1-2--8486
ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2000 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015