0% found this document useful (0 votes)
542 views

Control System Design of LTI Systems Using MATLAB

MATLAB provides tools like Simulink, Control System Toolbox, and Stateflow that can be used for control system design from modeling to deployment. Control System Toolbox contains commands for modeling, analysis, and design of linear time-invariant systems. Examples of using the toolbox for modeling plant dynamics, analyzing responses, designing controllers via root locus and pole placement, and simulating closed-loop systems are provided from various sources.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
542 views

Control System Design of LTI Systems Using MATLAB

MATLAB provides tools like Simulink, Control System Toolbox, and Stateflow that can be used for control system design from modeling to deployment. Control System Toolbox contains commands for modeling, analysis, and design of linear time-invariant systems. Examples of using the toolbox for modeling plant dynamics, analyzing responses, designing controllers via root locus and pole placement, and simulating closed-loop systems are provided from various sources.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 77

CONTROL SYSTEM DESIGN USING MATLAB

MATLAB provides several tools for control design. These tools include

• Simulink
• Control System Toolbox
• Real-Time Workshop
• Simscape
• Simulink Control Design
• Stateflow

, which can be used to support each stage of the development, from plant modelling to deployment
through automatic code generation. The flexibility of the tools makes them one of the first choices, if
not the first, in control design for control engineers around the world.

This document is purposed to provide you the introduction of what Control System Toolbox
can do in the design of LTI (Linear Time Invariant) systems. In general, there are four steps of
control design: plant modelling and analysis, controller designs, verifying and refining your designs,
and deploying them. Here we focus on the modelling and design parts by simulation.

1. PLANT MODELLING AND ANALYSIS

You can build a linear model of your plant with the use of physical model, or fitting test data
using System Identification Toolbox if the physical model is not available. Either model can be
imported into Control System Toolbox as an object. Once a model is created, you can use the toolbox
to analyse and control it. Some MATLAB command-line functions for modelling and analysis of LTI
systems are listed in Table 1. Using these commands, you can view and compare the time and
frequency responses of several linear models at once. You can also inspect key performance
parameters, such as rise time, settling time, percent overshoot, and stability margins.

Table 1 Examples of MATLAB commands for modelling and analysis of LTI systems

Command Description
Creation of LTI models
tf Create a transfer function model.
ss Create a state-space model.
zpk Create a zero/pole/gain model.
Data extraction
tfdata Extract numerator(s) and denominator(s).
ssdata Extract state-space matrices.
zpkdata Extract zero/pole/gain data.
Conversions
tf Conversion to transfer function.
ss Conversion to state space.
zpk Conversion to zero/pole/gain.
c2d Continuous to discrete conversion.
d2c Discrete to continuous conversion.
Model dynamics
pole, eig System poles
pzmap pole-zero map
dcgain DC gain
damp Natural frequency and damping of system poles
pade Pade approximation of time delays.
Time response
step Step response.
Impulse Impulse response.

S Wongsa 1
lsim Response to arbitrary inputs.
Initial Response of state-space system with given initial state.
Frequency response
bode Bode plot of the frequency response.
nyquist Nyquist plot.
nichols Nichols chart.
margin Gain and phase margins.
System interconnections
parallel Generalized parallel connection.
series Generalized series connection.
feedback Feedback connection of two systems.

2. CONTROL DESIGN

For designing SISO control systems, you can use command-line and GUI tools of
Control System Toolbox. Some MATLAB command-line functions for control design are listed in
Table 2. The MATLAB control design GUI, known as the SISO Design Tool, facilitates the design of
compensators for single-input, single output feedback loops. It lets your rapidly perform control
design tasks, such as manipulating closed-loop dynamics using root locus techniques, adding
compensator poles and zeros, and adjusting phase and gain margins.

Table 2 Classical control design tools.

Command Description
rlocus Root locus plot.
rlocfind Interactive root locus gain determination.
zgrid Generate z-plane grid lines for a root locus or pole-zero map.
acker SISO (single-input-single-output) pole placement.
place MIMO (multiple-input-multiple-output) pole placement.

In what follows, examples of digital control designs using MATLAB Control Toolbox are
provided. These examples are obtained and available freely on internet. You are strongly
recommended to try on all examples by yourself and read the references for more details.

Part I: Design using MATLAB command-line tools, taken from [1].

Example I Cruise control

Example II DC motor speed control

Example III DC motor position control

Example IV Ball and Beam problem using PID Control

Part II : Design using SISO Design Tool, taken from [2].

Example V Bode diagram design (DC motor)

Example VI Root-locus design (Electrohydraulic servomechanism)

S Wongsa 2
REFERENCES

1. Carnegie Mellon, Digital Control Tutorial, Control Tutorials for Matlab.


Available: http://www.engin.umich.edu/group/ctm/digital/digital.html

2. Control System Toolbox 8.5, Mathworks, Inc.


Available: http://www.mathworks.com/access/helpdesk/help/toolbox/control/

3. F. Haugen, Tutorial for Control System Toolbox for MATLAB, October 11, 2003.
Available: http://techteach.no/publications/control_system_toolbox/

S Wongsa 3
)\EQTPI-'VYMWIGSRXVSP
%ZEMPEFPILXXT[[[IRKMRYQMGLIHYKVSYTGXQI\EQTPIWGVYMWIHMK''60LXQP
)\EQTPI--('QSXSVWTIIHGSRXVSP
%ZEMPEFPILXXT[[[IRKMRYQMGLIHYKVSYTGXQI\EQTPIWQSXSVHMKMXEPLXQP
)\EQTPI---('QSXSVTSWMXMSRGSRXVSP
%ZEMPEFPILXXT[[[IRKMRYQMGLIHYKVSYTGXQI\EQTPIWQSXSVHMKMXEPLXQP

)\EQTPI-:&EPPERH&IEQTVSFPIQ
YWMRK4-('SRXVSP
%ZEMPEFPILXXT[[[IRKMRYQMGLIHYKVSYTGXQI\EQTPIWFEPPHMK&&4-(LXQP
)\EQTPI:&SHIHMEKVEQHIWMKR ('QSXSV 
%ZEMPEFPILXXT[[[QEXL[SVOWGSQEGGIWWLIPTHIWOLIPTXSSPFS\GSRXVSPKIXWXEVXJLXQP
)\EQTPI:-6SSXPSGYWHIWMKR
)PIGXVSL]HVEYPMGWIVZSQIGLERMWQ 
%ZEMPEFPILXXT[[[QEXL[SVOWGSQEGGIWWLIPTHIWOLIPTXSSPFS\GSRXVSPKIXWXEVXJLXQP

You might also like