01-Introduction To Control Systems
01-Introduction To Control Systems
Systems Design
Dr.ZaerAboHammour
ControlSystemsLaboratory
Experiment1:Introduction to Control Systems Design
The control system design process is illustrated in Figure 1.1. The design process consists of seven main building
blocks, which we arrange into three groups:
Figure 1.1: The Control System Design Process
For example, we may state that our goal is to control the velocity of a motor accurately. The second
step is to identify the variables that we desire to control (for example, the velocity of the motor). The
third step is to write the specifications in terms of the accuracy we must attain. This required accuracy
of control will then lead to the identification of a sensor to measure the controlled variable. The
performance specifications will describe how the closed-loop system should perform and will include
(1) good regulation against disturbances, (2) desirable responses to commands, (3) realistic actuator
signals, (4) low sensitivities, and (5) robustness.
As designers, we proceed to the first attempt to configure a system that will result in the desired control
performance. This system configuration will normally consist of a sensor, the process under control,
an actuator, and a controller, as shown in Figure 1.2. The next step consists of identifying a candidate
for the actuator. This will, of course, depend on the process, but the actuation chosen must be capable
of effectively adjusting the performance of the process. For example, if we wish to control the speed
of a rotating flywheel, we will select a motor as the actuator. The sensor, in this case, must be capable
of accurately measuring the speed. We then obtain a model for each of these elements.
Figure 1.2: Closed Loop feedback Control System
In summary, the controller design problem is as follows: Given a model of the system to be controlled
(including its sensors and actuators) and a set of design goals, find a suitable controller, or determine
that none exists. As with most of engineering design, the design of a feedback control system is an
iterative and nonlinear process. A successful designer must consider the underlying physics of the
plant under control, the control design strategy, the controller design architecture (that is, what type of
controller will be employed), and effective controller tuning strategies. In addition, once the design is
completed, the controller is often implemented in hardware, and hence issues of interfacing with
hardware can appear. When taken together, these different phases of control system design make the
task of designing and implementing a control system quite challenging.
A natural stage in the evolutionary process of modern engineering design is encompassed in the area
known as Mechatronics. The term mechatronics was coined in Japan in the 1970s. Mechatronics is
the synergistic integration of mechanical, electrical, and computer systems and has evolved over the
past 30 years, leading to a new breed of intelligent products. Feedback control is an integral aspect of
modern mechatronic systems. One can understand the extent that mechatronics reaches into various
disciplines by considering the components that make up mechatronics. The key elements of
mechatronics are (1) physical systems modeling, (2) sensors and actuators, (3) signals and systems,
(4) computers and logic systems, and (5) software and data acquisition. Feedback control encompasses
of all five key elements of mechatronics, but is associated primarily with the element of signals and
systems, as illustrated in Figure 1.3.
Advances in computer hardware and software technology coupled with the desire to increase the
performance-to-cost ratio has revolutionized engineering design. New products are being developed
at the intersection of traditional disciplines of engineering, computer science, and the natural sciences.
Advancements in traditional disciplines are fueling the growth of mechatronics systems by providing
"enabling technologies." A critical enabling technology was the microprocessor which has had a
profound effect on the design of consumer products. We should expect continued advancements in
cost-effective microprocessors and microcontrollers, novel sensors and actuators enabled by
advancements in applications of microelectromechanical systems (MEMS), advanced control
methodologies and real-time programming methods, networking and wireless technologies, and
mature computer-aided engineering (CAE) technologies for advanced system modeling, virtual
prototyping, and testing. The continued rapid development in these areas will only accelerate the pace
of smart (that is, actively controlled) products.
Figure 1.3: The Key Elements of Mechatronics
An exciting area of future mechatronic system development in which control systems will play a
significant role is the area of alternative energy production and consumption. Hybrid fuel automobiles
and efficient wind power generation are two of systems that can benefit from mechatronic design
methods. In fact, the mechatronic design philosophy can be effectively illustrated by the example of
the evolution of the modern automobile. Before the 1960s, the radio was the only significant electronic
device in an automobile. Today, many automobiles have 30-60, up to 100 electric motors, about 200
pounds of wiring, a multitude of sensors, and thousands of lines of software code. A modern
automobile can no longer be classified as a strictly mechanical machineit has been transformed into
a comprehensive mechatronic system.
MathWorks tools for control system design support each stage of the development process, from plant
modeling to deployment through automatic code generation. Their widespread adoption among control
engineers around the world comes from the flexibility of the tools to accommodate different types of
control problems. If your control problem is unique, you can create a custom tool or algorithm
using MATLAB.
Figure 1.4 :Control System in MATLAB
Figure 1.5: Plant Models
Control system design starts with an accurate plant model. You can describe the complex dynamics of
your plant using a variety of modeling approaches, all supported by MathWorks tools. Because these
tools work together in the Simulink modeling environment, you can use the most appropriate
modeling approach for each component in your plant to create the system-level plant model.
When you dont know the physics of your system, you can employ system identification, a common
data-driven modeling technique that uses input-output data to create a plant model. This approach lets
you rapidly develop accurate plant models without knowing the detailed structure of the model.
MathWorks physical modeling tools let you construct plant models by using blocks that represent
mechanical, electrical, magnetic, hydraulic, pneumatic, and thermal components to map the
component topography and physical connections of your system. With this approach, you can
efficiently create complex multidomain plant models without having to derive the underlying first-
principles equations. If you know the plant equations explicitly, you can implement them by using
Simulink blocks or express them in the SimScape language. First-principles modelsthose built
with physical modeling tools or by implementing equations explicitlycan be developed without
access to physical prototypes or plant hardware.
First-principles models contain parameters that correspond to physical properties of the plant, such as
mass, electrical resistance, and flow area, that may not be known. Simulink Design Optimization uses
experimental data to improve model accuracy by calibrating model parameters with input-output test
data.
Model environmental effects, such as atmosphere, gravity, wind turbulence, and the Earths magnetic
fields, with Simulink and Aerospace Blockset. You can create custom environmental models from
Simulink blocks, such as lookup tables
Figure 1.6:Design Feedback Compensators and Control Logic
Once an accurate plant model has been created, control engineers analyze and develop closed-loop
compensators and open-loop supervisory strategies using a range of MathWorks tools.
Perform a critical analysis of your control system within MATLAB or Simulink through the following
tasks:
1) Assess key performance parameters, such as overshoot, rise time, and stability
2) Trim, linearize, and compute the frequency response of nonlinear Simulink models
3) Model and analyze the effects of uncertainty on the performance and stability of your models
Simulink Control Design and Robust Control Toolbox eliminate the need for trial and error by
providing systematic methods for tuning single-loop and multiloop control systems entirely within
Simulink. You can:
1) Automatically tune PID controllers
2) Apply linear control design techniques using interactive root locus, Bode, and Nichols
diagrams
3) Automatically tune decentralized multivariable controllers
4) Leverage advanced control strategies, such as model predictive control and fuzzy logic
All of these control techniques can be easily evaluated and verified in MATLAB and Simulink.
Improve system performance and reduce system cost by automatically tuning design parameters in
your Simulink model with Simulink Design Optimization. You can optimize controller gains to
meet rise-time and overshoot constraints, or jointly optimize physical and algorithmic parameters to
maximize overall system performance.
Stateflow enables you to model, design, and simulate the supervisory logic in your control system,
which schedules the operation of the controller, controls the operational mode of the system, and
performs fault detection, isolation, and recovery (FDIR).
Figure 1.7: Implementation of Controller
After the control system has been designed and tested, you refine it for implementation. For example,
you can specify all the fixed-point data type properties of your design to prepare it for implementation
with fixed-point arithmetic.
You can deploy your design onto an embedded controller through automatic code generation. With
this approach you generate highly efficient code for your controller and avoid errors that can happen
when your design must be reinterpreted during manual coding. You can generate:
1) ANSI/ISO C and C++ code for targeting microprocessors and microcontrollers
2) IEC 61131 structured text for targeting programmable logic controllers (PLCs) and
programmable automation controllers (PACs)
3) Verilog and VHDL code for targeting FPGAs for applications such as AC motor control.
Figure 1.8: Test and Verification
MathWorks provides tools for comprehensive testing of your control systems, using desktop
simulation, real-time testing, and formal verification methods.
Test control algorithms through desktop simulation to find design errors before building hardware
and creating production software. Such early-verification testing reduces the need for expensive
and difficult-to-access prototypes. To perform early-verification testing, you combine the plant
model and control algorithm into one model and simulate the closed-loop system behavior. For
this simulation, utilize the plant model used for control design or develop one with higher fidelity.
One option for creating a higher fidelity plant model is to use a third-party product for your specific
application or industry from the MathWorks Connections Program.
You can reuse the plant model that you developed for compensator design for HIL testing.
MathWorks provides additional tools for verifying, validating, and testing your design that enable you
to:
1) Run test cases through your controller and check model coverage, including Modified
condition/decision coverage MC/DC coverage
2) Use formal verification methods to automatically create test cases that provide 100% coverage
of your control logic and prove specific model properties
3) Check the real-time code for certain run-time errors and trace the origins of errors in the model
Is a process which lets the engineer quickly test and iterate their control strategies on a real-time
computer with real input/output devices. Rapid control prototyping figure 1.9 differs from HIL in that
the control strategy is simulated in real-time and the plant, or system under control, is real. Rapid
control prototyping is now the typical method used by engineers to develop and test their control
strategies. Rapid control prototyping was first used for developing powertrain control strategies. The
simple reason is that the control software, which is in the engine and transmission control units, is
difficult and time-consuming to modify. It has since been adopted industry wide in applications such
as anti-lock braking, anti-roll, vehicle stability, active cruise control, and torque distribution.
Figure 1.10: Hardware in the Loop
1) Refine and verify the functional operation of control system designs with your hardware
2) Continuously explore and test new ideas using a flexible, scalable platform
3) Test control system hardware even when a physical plant or system is unavailable
4) Investigate scenarios and hardware interactions that are complex, expensive, or dangerous to
perform with production hardware
5) Avoid costly design flaws by detecting errors early when they are still cost-effective to correct