Lab2 Computer Controlled Sys
Lab2 Computer Controlled Sys
Students:
FAHAM Aya group 3
SAOULI Nihed group 3
BENZINA Douaa group 2
Instructor:
Dr.KACED.
Fall, 2024.
INTRODUCTION:
This lab focuses on two key methods in control system design: Root Locus and
Bode plot techniques. Root Locus shows how system poles change with feedback
gain, affecting stability and response, while Bode plots analyze system behavior in
the frequency domain. Using MATLAB's “control System Designer” tool, we
applied the Root Locus and the Bode plot methods to design and analyze
controllers.
PART I:
1) given the system shown in the fig.1 :
1. a) The root locus of the positioning servomechanism was sketched for K under
the condition of no tachometer feedback (KT=0).
1.c) For 𝐾 = 16, drawing the root locus with respect to 𝐾𝑇:
1.d) finding 𝐾𝑇, for 𝑀𝑝 = 0.05 and all the resultant values of 𝑡𝑟 and 𝑡𝑠 using the
MATLAB command “stepinfo”:
For Kt = 3.6 we have : Mp=0.412, tr= 0s , ts= 1.7s as shown in the figure below.
PART II:
Given the following transfer function:
2.a)
Approximating the plant transfer function G(s) by assuming m≈0 and setting M=1,
k=1, b=0.1, and D(s)=K.
We notice that the system is not stable for any value of K. Hence the system
performance specifications can not be changed by varying K.
Figure 6: the step response plot
Choosing k = 37, and z= 5. For these values the specifications were satisfied as
shown in the command window of the MATLAB software.
The following figure gives a good visualization of specifications:
Figure 8: system parameters visualization
K p(s + z)
2.c) The transfer function for 𝐷(𝑠)= 𝑠+1
for Z=5 , p = 250 .
PART III:
Determine the range of K for which the closed-loop systems are stable for each of
the cases below by using the “controlSystemDesigner” tool.
𝐊(𝐬+2)
1) KG(s)= .
𝐬+20
For K=1
𝐊
2) KG(s)= (𝐬+10)(𝐬+20)^2
For K=1
Figure 12: the step response and the root locus for G2 for K=1
For K= 34537
Figure 13: the step response and the root locus for G2 for K=34537
• We observe that, at this particular value of K, the root locus crosses the jω-
axis, indicating that the system is marginally stable. At this point, the system
remains stable, but as K increases beyond this value, the poles move into the
right-half plane, making the system unstable.
Hence. The system is stable for k ranges from 0 to 34537.
For K>34537
Figure 14:the step response and the root locus for G2 for K > 34537
For K=1
Figure 15:the step response and the root locus for G3 for K=1
As shown from the root locus plot, this system remains stable, with poles in the left
half-plane (LHP), even though the root locus crosses the jω-axis, which would
typically indicate marginal stability. Despite this, the system is still considered
stable, as the poles do not enter the right half-plane (RHP).
Figure 16: the step response and the root locus for G3 for K>1
• As the gain Increases, the system remains stable. When K is set to a very
high value, the system's step response behaves as shown above, and although
the system parameters are not optimal, the system becomes stable at some
point of time.
Hence. The system is stable for k ranges from 0 to infinity.
Conclusion
In this lab, we learned to use Root Locus for controller design and developed
practical skills with the MATLAB controlSystemDesigner tool. The root locus
method enabled us to analyze system stability and understand how varying the gain
K affects the system's poles. By visualizing pole movements and system responses,
we gained valuable insights into achieving the desired performance and stability.