Lab 2 - Analyze The Performance of Control System
Lab 2 - Analyze The Performance of Control System
LAB 2
I. LABORATORY OBJECTIVES
In this lab, students will examine and evaluate the performance criteria of closed-loop
control system including: percentage overshoot, steady-state error, rising time, settling time.
The model used in this lab is a DC motor controlled by a continuous controller consisting of a
proportional and an integral term. This controller is implemented using an op-amp circuit.
The proportional and integral coefficients are varied to provide different types of output
responses.
Objectives after completing this lab:
Know how to construct and simulate continuous closed-loop control system using
MATLAB and Simulink.
Understand the principle of continuous controller design using basic op-amp circuits.
Know how to calculate performance criteria of a control system.
1 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
- Settling time: is the time required for the response of a system to reach and stay within a
range about the steady-state value of size specified by absolute percentage of the steady-state
value (usually 2% or 5%).
- Rising time: is the time required for the response of a system to rise from 10% to 90% of
its steady-state value.
Figure 4. Graph illustrated how to calculate settling time and rising time
2 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
With voltage input and position output, we add a serial integral to the transfer
function G(s) above.
Note: The motor speed transfer function has second-order form and does not have an
integral, whereas the motor position transfer function has third-order form with an integral.
Because of the above properties, we can choose a simple controller to examine: the
proportional-integral PI controller. The PI controller provides an integral term for the system
to eliminate steady-state error and the two coefficients Kp, Ki can be varied to change the
quality of the transient response.
III. PREREQUISITES
3.1 Simulate controller for DC motor model
In this lab, we will examine the quality of the closed-loop control system as described
in Figure 6. This model allows us to change the number of integrals in the open-loop transfer
function to change the steady-state error and to vary the coefficients of the controller to create
different types of output response.
In Figure 6:
- SW_R selects step input or ramp input.
- SW_Y selects controlled variable: speed or position.
Assume the second-order transfer function of the motor has the form:
( )=
+ +1
The proportional-integral controller has the form:
( )= +
4 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
* Step input
Speed control, P controller: open-loop transfer function doesn’t have an integral
1
= = → =
→ + +1 1+
When increasing Kp the steady-state error decreases, but the poles of the system move
away from the real axis so that the system response oscillates more and has higher overshoot.
Speed control, PI controller: open-loop transfer function has an integral
= + → =0
→ + +1
Adding an integral and a zero causes the root locus to be pushed to the right of the
complex plane so that the system is less stable. The system has steady-state error of 0;
however, if Ki is large, the system is less stable.
Position control, P controller: open-loop transfer function has an integral
1
= =∞→ =0
→ + +1
* Ramp input
Speed control, P controller: open-loop transfer function doesn’t have integral term
= =0→ =∞
→ + +1
The system output doesn’t follow reference input.
Speed control, PI controller: open-loop transfer function doesn’t have integral term
1
= + =0→ =
→ + +1
Steady-state error decreases when Ki increases. When Ki is too large, the system is
unstable.
Position control, P controller: open-loop transfer function doesn’t have integral term
1 1
= =0→ =
→ + +1
Steady-state error decreases when Kp increases.
Position control, PI controller: open-loop transfer function has one integral term
1
= + =∞→ =0
→ + +1
5 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
From these above arguments, students build closed-loop control system to control DC
motor using proportional-integral controller in MATLAB Simulink, as shown in Figure 7.
For K = 100, a = 0.05, b = 1.5, students build Simulink model, run simulation and
calculate performance criteria for the cases in Table 1 and Table 2. Save data and plot output
responses.
Steady-state error
Figure 8 shows op-amp circuit from which students can calculate controller coefficients
including proportional, integral, derivative terms. In this lab, we will only use proportional
and integral terms. Full PID controller will be experimented with in Lab 3.
6 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
a. Present the principle diagrams and formulas of the following basic amplifiers: non-
inverting amplifier, inverting amplifier, buffer, addition, integration, and differential.
b. Specify the formula for calculating Kp, Ki, and Kd in the op-amp circuit in Figure 8.
7 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
Figure 10. Block diagram of continuous control system using op-amp circuit
V. IN-LAB PROCEDURE
5.1 Analyze performance of control system using continuous block in
MATLAB/Simulink
Experimental steps:
a) Open the motor_cont_ctrl0.mdl Simulink file
8 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
b) In the Simulink file, for each experiment in the table, perform the following steps in
accurate order: select step input or ramp input SW_R set setpoint value select
speed control or position control mode using SW_Y set the coefficients {Kp, Ki}
c) Compile the model and run it.
d) Open the scope to see system response and calculate performance criteria.
e) Write the results in Table 3.
f) Save the image of the system response to compare it with images of other cases.
g) Repeat step b) to step d) with remaining values in Table 3 and Table 4.
Steady-state error
10 / 11
Department of Control Engineering & Automation – FEEE – HCMUT
LAB REPORT
1. From the simulated results in Table 1 and Table 2, evaluate steady-state errors in all
cases. Comment on the forms of output responses.
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
2. From the experimental results in Table 3 and Table 4, evaluate steady-state errors in all
cases. Comment on the forms of output responses. Compare with simulated results in
Table 1 and Table 2.
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
3. From the experimental results in Table 5 and Table 6, evaluate steady-state errors in all
cases. Comment on the forms of output responses. Compare with simulated results in
Table 1 and Table 2.
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
...............................................................................................................................................
11 / 11