Lab 3
Lab 3
I
n this Lab, we will try to cover the principal aspects on closed-loop performances, as we have
seen in the course, the performances of a close-loop system are divided into transient and
steady-state stage. In the first one, we are interesting to satisfy some specifications in time
domain like Rise time, Settling time, Peak time, Response time and percentage of overshoot. In the
other side, the steady-state specification is covering by the error between the desired input and the
system’s response, in unit step case, the error is called position (labeled by 𝐾𝑝 ) and when the input
is a ramp signal, the error is called velocity (labeled by 𝐾𝑣 ), and in case of a parabolic input, the
• PID tuning
Materials: Computer included a MATLAB software with Word editor to prepare the final report.
Time-duration : 1H30min
%%%%%% If the input is a unit step you can use step(gc) or you can use the
following commands)
u=ones(size(t));% the input is a unit step
lsim(gc,u,t);% plot the unit step response of the closed-loop system
1. Determine graphically the steady-state error for a unit step input, unit ramp input and unit
parabolic input for the control system described by the following transfer function :
2. For the following control system determine graphically the steady-state error for the inputs: 5𝑢(𝑡),
3. For the control system described by the following feed forward transfer function determine the
4. Design the following control system by selecting a value of 𝐾 graphically such that there is a
10% steady state error for a unit ramp input. Use the Routh-Hurwitz criterion to confirm that the
1. Find the values of 𝐾 that make the system instable based on a simple MATLAB code of the
Hint: you must construct a vector that contains many values (for example K=[1:1500]) and replace
it in the characteristic equation and check the stability. You can use Routh array to find the stability
range.
Using a “for loop,” write a MATLAB program to obtain unit-step response of this system for
• Tune the pole P and the gain k to meet the following specifications (use stepinfo(g) to
-Percentage overshoot ≤ 5%
-settling time 𝑇𝑠 ≤ 4𝑠
Part C: (PID controller applied on a DC Motor): The open-loop transfer function of the DC Motor
is given as follows (see the chapter-1 in case of torque constant is equal to the back EMF constant).
The structure of the control system has the form shown in the figure below.
For a 1-radian step reference r(t), the design criteria are the following.
▪ No steady-state error
J = 3.2284E-6;
b = 3.5077E-6;
K = 0.0274;
R = 4;
L = 2.75E-6;
Recall that the transfer function for a PID controller has the following form.
• In the first tuning, use only the proportional controller and sketch the step response for
different values of 𝐾𝑝 = 1, 11, 21.write the transient response performances for the
• Give your remarks on how the 𝐾𝑝 value can affect the steady-state error and the transient
response
• Plot the step response with PI controller for the three given values of 𝐾𝑖.
• Give your remarks on how the value of 𝐾𝑖 can affect the steady-state error and the transient
response
• Put the Disturbance 𝑑 = 1 and plot the step response in this case.
• Adding a derivative term to the controller means that we now have all three terms of the PID
controller. We will investigate derivative gains 𝐾𝑑 ranging from 0.05 to 0.25 along with the
• Give your remarks on how the value of 𝐾𝑑 can affect the steady-state error and the transient
response
• Put the Disturbance 𝑑 = 1 and plot the step response in this case.