Specifications
A GUI to Set Simulink Model Parameters
5-29
assembled to create the GUI. You can also see a complete listing of the code
that is discussed in the following sections.
Note The following links execute MATLAB commands and are designed to
work within the MATLAB Help browser. The first link adds a directory to your
MATLAB path.
Click here to display this GUI in the Layout Editor.
Click here to display the application M-file in the editor.
How to Use the GUI (Text of GUI Help)
You can use the F14 Controller Gain Editor to analyze how changing the gains
used in the Proportional-Integral Controller affect the aircraft’s angle of attack
and the amount of G force the pilot feels.
Note that the Simulink diagram
f14.mdl must be open to run this GUI. If you
close the F14 Simulink model, the GUI reopens it whenever it requires the
model to execute.
Changing the Controller Gains
You can change gains in two blocks:
•The Proportional gain (Kf) in the Gain block
•The Integral gain (Ki) in the Transfer Function block
You can change either of the gains in one of the two ways:
•Move the slider associated with that gain.
•Type a new value into the
Current value edit field associated with that gain.
The block’s values are updated as soon as you enter the new value in the GUI.
Running the Simulation
Once you have set the gain values, you can run the simulation by pressing the
Simulate and store results button. The simulation time and output vectors
are stored in the
Results list.