Documente Academic
Documente Profesional
Documente Cultură
6
Time Responses of Dynamic Systems Using Matlab Simulink
1. Objective:
The activity aims to understand the different time responses of dynamic systems using matlab simulink.
2. Intended Learning Outcomes (ILOs):
The students shall be able to:
2.1 Determine the different responses of dynamic systems using matlab simulink.
3. Discussion:
A dynamic system is a system in which a function describes the time dependence of a point in a
geometrical space. Examples include the mathematical models that describe the swinging of a clock
pendulum, the flow of water in a pipe, and the number of fish each springtime in a lake.
The time response represents how the state of a dynamic system changes in time when
subjected to a particular input. Since the models consist of differential equations, some integration must be
performed in order to determine the time response of the system. For some simple systems, a closed-form
analytical solution may be available. However, for most systems, especially nonlinear systems or those
subject to complicated input forces, this integration must be carried out numerically. Fortunately, MATLAB
provides many useful resources for calculating time responses for many types of inputs.
The time response of a linear dynamic system consists of the sum of the transient response which
depends on the initial conditions and the steady-state response which depends on the system input. These
correspond to the free (homogeneous or zero input) and the forced (inhomogeneous or non-zero input)
solutions of the governing differential equations respectively.
Simulink, developed by MathWorks, is a graphical programming environment for modeling,
simulating and analyzing multidomain dynamic systems. Its primary interface is a graphical block
diagramming tool and a customizable set of block libraries. Visual modeling is the graphic representation of
objects and systems of interest using graphical languages.
4. Resources:
Matlab
5. Procedure:
1. To start Simulink from the Matlab IDE, select the Simulink Icon in the toolbar to open the
Simulink Start Page. Click a blank model.
2. Open Simulink Library Browser by clicking Tools and choosing Library Browser. Click
Commonly Used Blocks. Enumerate the different commonly used blocks and identify the
function of each block. Show your answers in Data and Results.
3. Click Continuous . Enumerate the different blocks under Continuous and identify the function of
each block. Show your answers in Data and Results.
4. Click Discrete . Enumerate the different blocks under Discrete and identify the function of each
block. Show your answers in Data and Results.
5. Click Sinks . Enumerate the different blocks under Sinks and identify the function of each block.
Show your answers in Data and Results.
1
6. Click Sources. Enumerate the different blocks under Sources and identify the function of each
block. Show your answers in Data and Results.
7. To determine the step response of the system
The input u is the step block from sources. Drag and drop this step block to the Simulink window. The
transfer function block can be taken from Continuous blocks. Drag and drop two transfer function
blocks and specify the numerical coefficients of the numerator and denominator of the two transfer
functions by double clicking the transfer function blocks. The output y can be determined by using
Scope block which can be taken from Sinks blocks. Drag and drop Scope block to the Simulink window.
Connect them. It should look like this in the Simulink window:
Click the run button and when it is ready, double click the Scope. Save the simulation with the
filename yourSurnameSimPro7. Show the time response of the system in Data and Results.
Compare the results of the previous activity. Are the results the same ?
8. Using following dynamic systems, simulate each of them. Show the assembled blocks and the
result of each simulation. Use step block as the input to the system. Save the simulation using
file names as yourSurnameMatlabExer02Proc8a to yourSurnameMatlabExer02Proc8e.
2
c
9. Repeat Procedure 8 using ramp block as input. Save the simulation using file names as
yourSurnameMatlabExer02Proc9a to yourSurnameMatlabExer02Proc9e
10. Using the dynamic systems in Procedure 9, reduce each of them into a single block and
simulate each of them.
a. Use step block as the input to the system. Save the simulation using file names as
yourSurnameMatlabExer02Proc10Partaa to yourSurnameMatlabExer02Proc10Partae.
b. Use ramp block as the input to the system. Save the simulation using file names as
yourSurnameMatlabExer02Proc8Partba to yourSurnameMatlabExer02Proc8Partbe
3
Course: ECE 006 Laboratory Exercise No.: 6
Group No.: Section: CH42FB2
Group Members: Date Performed: September 20, 2018
Tayo, Neriza Joy R. Date Submitted:
Instructor:
Engr. Crispulo Maranan
6. Data and Results:
Procedure 2
Table of Commonly Used Blocks
Name of the Block Image of the Block Function
The Bus Creator block combines a
1. Bus Creator set of signals into a bus.
4
You can use the Discrete-Time
7. Discrete –Time Integrator Integrator block in place of the
Integrator block to create a purely
discrete system.
5
The Saturation block imposes upper
17. Saturation and lower limits on an input signal
Procedure 3
Continuous
Name of the Block Image of the Block Function
Numerical derivative: du/dt.
1. Derivative
Continuous-time integration of
2. Integrator the input signal.
Second-order continuous-time
3. Integrator second-order integration of the input signal.
6
Second-order continuous-time
4. Integrator second-order integration of the input signal.
limited
Continuous-time integration of
5. Integrator Limited the input signal.
dx/dt = Ax + Bu
y = Cx + Du
7
The block can be used to
12. Variable Transport Delay simulate the variable transport
delay phenomenon such as
incompressible liquid flow in a
pipe.
Procedure 4
Discrete
Name of the Block Image of the Block Function
9
Apply a one integration step
14. Memory delay. The output is the previous
input value.
Procedure 5
Sinks
Name of the Block Image of the Block Function of the Block
Numeric display of input values.
1. Display
10
Displays input signals with
2. Floating Scope respect to simulation time.
Procedure 6
Sources
Name of the Block Image of the Block Function of the Block
The Band-Limited White Noise
1. Band-Limited White Noise block generates normally
distributed random numbers that
are suitable for use in continuous
or hybrid systems.
11
2. Chirp Signal Output a linear chirp signal (sine
wave whose frequency varies
linearly with time).
12
Read data values specified in
11. From Workspace timeseries, matrix, or structure
format from the MATLAB
workspace, model workspace, or
mask workspace.
Used to "ground" input signals.
12. Ground (Prevents warnings about
unconnected input ports.)
Outputs zero.
Provide an input port for a
13. In1 subsystem or model.
13
signals whose waveforms are
piecewise linear
Output a step.
23. Step
sin(2, 3, 1) or
sin('Amplitude', 2, 'Frequency', 3,
'Phase', 1)
14
Supported waveforms include
step, pulse, square, Gaussian
noise, and more.
Procedure 7
The Step Response as discussed in the laboratory activity no. 6 has a staircase-like graphical
representation. Also, the plots from the previous activity also shows a parabolic graph. However, in this
activity, with the use of the simulink, we came up with a wave like graph as shown above.
Procedure 8
15
Procedure 9
9b
9c
9d
16
9e
Procedure 10 Part a
10b
17
10c
10d
10e
Procedure 10 Part b
18
10a
10b
10c
19
10d
10e
7. Conclusion:
I can therefore conclude that the graphical representation for dynamic systems differs with respect
to the response type used: Step; Ramp. Also, the difference in the plot can also be traced back to the
difference in transfer functions which is mainly attained depending on the conditions of the system. This
activity helps use to understand the different time responses of dynamic systems using matlab simulink.
Matlab is a commercial software that provides a computing environment that allows for sophisticated ways
of developing executing programs, and visualizing the output. You just have to learn the basic commands
and the fundamentals of Matlab.
20
8. Further Readings:
Ferraris, G. and Manenti, F. (2010). Interpolation and regression models for the chemical engineer:
solving numerical problems. Germany: Wiley-VCH Verlag
Filo, O. (2010). Information processing by biochemical systems: neural network type configurations.
New Jersey: Wiley.
Gopal, S. (2009). Bioinformatics: a computing perspective. India: McGraw-Hill Science/Engineering
Math.
Jaluria, Y. (2012). Computer methods for engineering with MATLAB applications (2 nd ed.). Boca,
Raton,Florida: CRC Press.
Knopf, F. C. (2012). Modeling, analysis and optimization of process and energy systems.Hoboken,
New Jersey: John Wiley and Sons.
Velten, K. (2009). Mathematical modeling and simulation: introduction for scientists and engineers.
Singapore: Wiley-VCH.
Total Score
Mean Score = (Total Score / 3)
Percentage Rating = (Total Score / 12) x 100%
Evaluated by: ______________________________________ _______________
Printed Name and Signature of Faculty Member Date
22