Running the GUI
Using the GUI
The purpose of this Graphical User Interface (GUI) is to allow the user to view an animation of the Bus Suspension system with the step disturbance response plot. This allows the user to see the correlation between the plot and the systems physical response.
The animation and GUI are based on the Bus Suspension: Root Locus example. For more information on the system model please refer to the Bus Suspension: Modeling page.
Once these files are copied into your MATLAB directory, simply enter the following command:
busGUIThe other file need not be run from the command window, it will be called separately by the GUI. The following figure should appear on your screen after the command has been executed:
The first group of controls contains the RUN and RESET buttons. These controls perform most of the work in the GUI.
RESET - This control clears the upper-right step response plot and sets the bus model to it's initial position. If a plot is not cleared the next run will be plotted on the same plot. This is useful if you want to see graphically the difference changing some values makes.
An example of the animation and response plot are shown below. It should be noted that the bus appears only with one wheel because because only a quarter model was used in our system.
This group of controls contains checkboxes that allow the user to change various features of the GUI.
PLOT SEPARATELY - By checking this box the step response plot is graphed in its entirety before the animation is run.
This control allows you to select the gain of the controller.
An example of the root locus plot is shown below. The red crosses (+'s) represent the pole locations corresponding to the selected gain.
REMEMBER, this GUI is intended to be an interactive learning tool that will allow the user to get a feeling for how some basic control techniques and ideas are represented in the real world. Therefore, the user is encouraged to PLAY around with this tool to enhance their understanding of controls.