Control Tutorials for MATLAB and Simulink (2024)

Contents

  • Purpose
  • Running the GUI
  • Using the GUI

Purpose

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 Aircraft Pitch: State-Space Controller Design page. For more information on the system model please refer to the Aircraft Pitch: System Modeling page.

Running the GUI

To run the GUI you will need 2 files. Copy each of them to the directory in which you are running MATLAB.

pitchgui.fig - contains the graphical interface.

pitchgui.m - contains the GUI callback function.

Once these files are copied into your MATLAB directory, simply enter the following command:

pitchgui

The 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:

Control Tutorials for MATLAB and Simulink (1)

Once you click on Run, the following figures should appear.

Control Tutorials for MATLAB and Simulink (2)

Using the GUI

Below are descriptions of each of the controls found in the GUI. These descriptions are intended to give the user a better understanding of what each control actually does. However, feel free to experiment with the controls and use this section as a reference for any questions you might have.

The first group of controls contains the Run, Reset and Exit buttons. These controls perform most of the work in the GUI.

Control Tutorials for MATLAB and Simulink (3)

Run - This button performs the simulation, plots the response in the upper-right portion of the window and runs the animation in the lower-right portion of the window.

Reset - This button clears the upper-right step response plot and sets the ball position and beam angle to zero in the lower-right plot. If a plot is not cleared, the next run will be graphed on the same plot. This is useful if you want to graphically see the effect of varying a parameter.

Exit - This button closes the GUI.

An example of the animation and response plot are shown below. The red line in the animation represents the plane's elevator control surface.

Control Tutorials for MATLAB and Simulink (4)

The next control allows you to set the weighting factor of the Q matrix for the LQR design method utilized in the animation. For more information on LQR and weighting factors for this problem click here.

Control Tutorials for MATLAB and Simulink (5)

Pitch Angle Weighting Factor - This editable text field weights the plane's pitch angle in the LQR controller. Increasing the weighting factor improves the plane's response, making it reach it's commanded position faster.

Feel free to change the weighting factor to see what happens!

The control shown below allows you to change the step input command.

Control Tutorials for MATLAB and Simulink (6)

Step Slider - The slider allows you to change the magnitude of the step input command. You can click on the arrows to move the slider, grab the the slider bar and move it, or click on the slider to change the step input. The current value of the step input is displayed in the upper portion of the box.

This next group of controls contains checkboxes that allow the user to change various features of the GUI.

Control Tutorials for MATLAB and Simulink (7)

Manual Advance - If this control is checked, the user is able to advance the animation and plot one frame at a time. The frames are advanced by pressing any key on the keyboard. This function is useful if the animation moves too fast for the user and will allow the user to better visualize the entirety of the system's motion.

Plot Separately - By checking this box the step response plot is graphed in its entirety before the animation is run.

Reference Input - This box is automatically checked when the GUI is run. By un-checking it the user removes the reference input term, Nbar, from the simulation. The reference input is used to correct steady-state errors common to full-state feedback systems.

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.


Published with MATLAB® 9.2

Control Tutorials for MATLAB and Simulink (2024)

References

Top Articles
Best pop up tent 2023: The easiest and fastest tents to pitch | Expert Reviews
Kampeertrends en noviteiten | Kampeer & Caravan Jaarbeurs
Toa Guide Osrs
Pixel Speedrun Unblocked 76
Craigslist Vans
News - Rachel Stevens at RachelStevens.com
877-668-5260 | 18776685260 - Robocaller Warning!
RuneScape guide: Capsarius soul farming made easy
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
1TamilMV.prof: Exploring the latest in Tamil entertainment - Ninewall
Aries Auhsd
Nonuclub
Kinkos Whittier
Hellraiser III [1996] [R] - 5.8.6 | Parents' Guide & Review | Kids-In-Mind.com
Georgia Vehicle Registration Fees Calculator
Kcwi Tv Schedule
College Basketball Picks: NCAAB Picks Against The Spread | Pickswise
European city that's best to visit from the UK by train has amazing beer
Poochies Liquor Store
Dhs Clio Rd Flint Mi Phone Number
Worthington Industries Red Jacket
Pioneer Library Overdrive
1964 Impala For Sale Craigslist
Happy Shuttle Cancun Review
How to Use Craigslist (with Pictures) - wikiHow
Insidious 5 Showtimes Near Cinemark Southland Center And Xd
N.J. Hogenkamp Sons Funeral Home | Saint Henry, Ohio
Die wichtigsten E-Nummern
Shauna's Art Studio Laurel Mississippi
Delta Rastrear Vuelo
Beaver Saddle Ark
Wbli Playlist
Staar English 1 April 2022 Answer Key
Why Gas Prices Are So High (Published 2022)
Otter Bustr
Midsouthshooters Supply
Raising Canes Franchise Cost
Daily Times-Advocate from Escondido, California
Craigslist Free Manhattan
Www Usps Com Passport Scheduler
Pro-Ject’s T2 Super Phono Turntable Is a Super Performer, and It’s a Super Bargain Too
Obituaries in Hagerstown, MD | The Herald-Mail
COVID-19/Coronavirus Assistance Programs | FindHelp.org
Learn4Good Job Posting
Dancing Bear - House Party! ID ? Brunette in hardcore action
Bf273-11K-Cl
Star Sessions Snapcamz
Fine Taladorian Cheese Platter
Mlb Hitting Streak Record Holder Crossword Clue
Tamilblasters.wu
Land of Samurai: One Piece’s Wano Kuni Arc Explained
Gainswave Review Forum
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 5807

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.