Professional Documents
Culture Documents
2020-2021
BRANCH :
SEMESTER :
BATCH :
GENERAL INSTRUCTIONS
1.1 INTRODUCTION
This manual provides the operating instructions in a simplified form and leads
students through a prescribed set of experiments aimed at demonstrating the
basic principles of control systems. It is essential that students read these
preliminary sections in order to understand the purpose of each experiment.
Objectives of the course are:
• To illustrate concepts of control system course by experiment / simulation.
• To familiarize students with transient-response and frequency-response of a
control system, and to investigate various controller configurations.
• To give the students the opportunity to practice engineering report writing
and teamwork.
• To train the students to use engineering tool, MATLAB / SCILAB, to create
and extend its functions as necessary.
1.8 REFERENCE
i. Modern Control Systems, Norman Nise.
ii. Modern Control Systems, Nagrath Gopal
Course Code: PC-BTE506 (AY 2019-20)
Course Objectives:
1. Time response, frequency response and state variable analysis
2. Introduction to controllers and compensators
3. Introduction to optimum and nonlinear control
4. Identify the applications of control system.
Course Outcomes:
Students will demonstrate the ability to Simulate and analyze
1. First, second and higher order systems
2. Bode plot, Nyquist plot, solution of state equations, non-linear system
3. Compensator controller and observer designs
4. Develop managerial skills
Course Contents:
Simulink Basics
Simulink is a graphical tool that allows to simulate systems.
Placing Components
To place a component, drag it from the component library browser to the model
space. To make a connection, hold down CTRL and click on the arrows on each
block that you wish to connect. To connect multiple lines to a single block, hold
down CTRL and click on the line already attached to the block and then make the
second connection.
Components
For most of the systems in-built blocks are available in Simulink’s component
library. In particular, the components we should be familiar with are:
• Continuous library
Integrator – integrates a signal
State-Space – used to add a system block in state-space form
Transfer Fcn – used to add a system block in transfer function form
• Math Operations library
Gain – a constant gain
Sum – used to add two or more signals
Trigonometric Function – used to place trigonometric elements
• Signal Routing library
Mux – used to multiplex signals together in order to plot them on one graph
• Sinks library
Scope – used for viewing system output
To workspace – used to transfer a signal data to MATLAB workspace.
• Sources library
ramp – generates a ramp signal
Sine Wave – generates a sinusoid
Step – generates a unit step signal
Components in detail:
Gain: To modify a ’Gain’ component, double-click on the component. The ’Gain’
parameter can be either a number or can be an expression.
MATLAB Basics
Before you begin the next sections, it would be a good idea to run the MATLAB
Control System Toolbox demo. This is done by typing “demo(’toolbox’,’control’)”
at the MATLAB prompt. Aside from the basic MATLAB plotting commands, you
should become familiar with the following commands:
• tf – This command is used to enter transfer functions. For example, to enter the
s+ 2
transfer function H ( s)= you would type H=tf([1 2],[1 0 5]). The first parameter
s 2 +5
is a row vector of the numerator coefficients. Similarly, the second parameter is a
row vector of the denominator coefficients.
• conv – This command is used to convolve two polynomials. It is particularly
useful for determining the expanded coefficients for factored polynomials. For
example, this command can be used to enter the transfer function
s+2
H (s)=
(s+1)(s−3)
by writing H=tf([1 2],conv([1 1],[1 -3])).
• series or * – This command is used to combine two transfer functions that are in
series. For example, if H(s) and G(s) are in series, they could be combined with the
command “T=G*H” or “T=series(G,H)”.
• feedback – This command is used to combine two transfer functions that are in
feedback. For example, if G(s) is in the forward path and H(s) is in the feedback
path, they could be combined with the command “T=feedback(G,H)”.
• step – This command is used to plot the step response of a system. For example,
“step(T)” would plot the step response of the system T (s). By default it will plot
step response assuming input to be a unit step signal. If you want to get step
response for a step signal of magnitude A then first set the amplitude to A using
command opt = stepDataOptions('StepAmplitude',100); and then execute
step(T,opt);
•stepinfo(sys) computes the step-response characteristics for a dynamic system
model sys. The function returns the characteristics in a structure containing the
fields:
o RiseTime — Time it takes for the response to rise from 10% to 90% of
the steady-state response.
o SettlingTime — Time it takes for the error |y(t) - yfinal| between the
response y(t) and the steady-state response yfinal to fall to within 2%
of yfinal.
o SettlingMin — Minimum value of y(t) once the response has risen.
o SettlingMax — Maximum value of y(t) once the response has risen.
o Overshoot — Percentage overshoot, relative to yfinal).
o Undershoot — Percentage undershoot.
o Peak — Peak absolute value of y(t)
o PeakTime — Time at which the peak value occurs.
lsim simulates the time response of continuous or discrete linear systems to
arbitrary inputs. When invoked without left-hand arguments, lsim plots the
response on the screen.
pzmap(sys) creates a pole-zero plot of the continuous or discrete-
time dynamic system model sys
rlocus – This command is used to plot the root locus of a SISO open-loop
model. The root locus gives the closed-loop pole trajectories as a function of
the feedback gain k (assuming negative feedback). Root loci are used to study
the effects of varying feedback gains on closed-loop pole locations.
bode – This command is used to plot the frequency response. For example,
“bode(T)” would plot the frequency response of the system T (s).
nyquist function creates a Nyquist plot of the frequency response of a dynamic
system model. When invoked without left-hand arguments, nyquist produces a
Nyquist plot on the screen. Nyquist plots are used to analyze system
properties including gain margin, phase margin, and stability.
nichols function creates a Nichols chart of the frequency
response. A Nichols chart displays the magnitude (in dB) plotted against the
phase (in degrees) of the system response. Nichols charts are useful to
analyze open- and closed-loop properties of SISO systems.
Index
Sr. Title Date of Page Grade/ Sign with
N performance No. Remark date
o
1 Mathematical Modelling of
Physical System (Speed Control)
2 Mathematical Modelling and
Analysis of RLC Network
3 First order system analysis
4 Second order system analysis –
part I
5 Second order system analysis –
part II
6 Analysis of Under-damped
systems
7 Effect of zero location
8 Block Diagram Reduction
9 Root Locus
10 Bode Plot
11 Nyquist Plot
12 Introduction to PID Controller
13 State Space
14 Non-Linear System Analysis
Objectives:
1) To obtain model of a given system in the form of block diagram and
transfer function and determine the output for a given input.
2) To learn use of MATLAB in solving such models.
System Details:
1
Fig 1.
Procedure:
1) Derive model of the given system in block diagram and transfer function
form.
2) Calculate the response of the system for a given input applied to the
system.
3) Write a MATLAB program to obtain response of the system. (use functions
tf, step, lsim , stepinfo)
4) Create a Simulink model of the system and obtain the response.
Calculations: Model derivation and response calculation
Observations:
Conclusions:
Objectives:
1) To obtain model of a RLC network in the form of transfer function and
determine the output for a given input.
2) To use MATLAB for plotting the system response.
Procedure:
1) Derive model of the given system in block diagram and transfer function
form.
2) Calculate the response of the system for a given input applied to the
system.
3) Write a MATLAB program to obtain response of the system for step and
sinusoidal inputs. (use functions step, lsim , stepinfo)
4) Create a Simulink model of the system and obtain the response.
Observations:
Conclusions:
Questions:
1) What is the order of the system?
2) What are the initial conditions in the system?
3) What parameters you can measure from the plots?
4) What different types of responses are possible?
Objectives: To study the effect of pole location on the performance of first order
system.
System Details:
Input u(t) output c(t)
Procedure:
1) Calculate the response of the system for unit step input.
2) Calculate Steady state value, Rise time and settling time for given values of
k and a in table below.
3) Write a MATLAB program to obtain response of the system for step input.
Calculations:
Theoretical results:
K= 5 a= 2
K= 5 a= 7
K= 5 a= -2
Observations:
Conclusions:
Questions:
1) What is the effect of gain?
2) What is the effect of pole location?
3) When is the system unstable?
Additional work:
MATLAB code to Simulate and plot the response of the multiple systems for same
input (for eg. square wave):
H = [tf([2 5 1],[1 2 3]);tf([1 -1],[1 1 5])]; % Create the matrix of transfer functions
[u,t] = gensig('square',4,10,0.1); % generate the square wave for 10 seconds
considering sampling time of 0.1 second with period of four seconds.
lsim(H,u,t) % simulate the system with given input.
Objectives: To study the effect of damping ratio and natural frequency on the
performance of second order system.
System Details:
Input u(t) Output c(t)
Procedure:
1) Calculate the response of the system for unit step input.
2) Calculate Steady state value, Peak time, Rise time, %overshoot and settling
time for given values of ξ and ω nin table below.
3) Write a MATLAB program to obtain response of the system for step input.
Calculations:
Theoretical results:
ξ ω n Steady Peak Rise % Settling *Nature of
state value time (s) time (s) overshoot time (s) response
0.5 2
1 2
2 2
0 2
-2 2
0.5 4
0.5 8
*under-damped / over-damped / critically damped / oscillatory / unstable
Observations:
Conclusions:
Questions:
1) What is the effect of damping ratio?
2) What is the effect of natural frequency?
3) When is the system unstable?
4) Can you relate the pole zero locations with system response?
Objectives: To study the effect pole location on the performance of second order
system.
List of Equipment/Software: MATLAB
System Details:
Input u(t) output c(t)
Procedure:
1) Calculate the response of the system for unit step input.
2) Write a MATLAB program to obtain response of the system for step input.
Calculation of response:
Observations:
Questions:
1) What is the effect of pole location?
2) When is the system unstable?
3) Can you relate the pole zero locations with system performance?
4) Which system is fastest?
Exp. 6: Analysis of Under-damped systems
System Details:
Input u(t) Output c(t)
Procedure:
1) Calculate the response of the system for unit step input.
2) Calculate Steady state value, Peak time, Rise time, %overshoot and settling
time for given values of a and b in table below.
3) Write a MATLAB program to obtain response of the system for step input.
Calculations:
Theoretical results:
a b ξ ωn Steady Peak Rise % Settling
state value time (s) time (s) overshoot time (s)
1 1
1 2
1 3
1 1
2 1
3 1
0.75 1
1.5 2
2.25 3
Observations:
Conclusions:
Questions:
1) What is the effect of pole location?
2) Can you relate the pole zero locations with system performance?
3) Which system is fastest?
Objectives: To study the effect zero location on the performance of second order
system.
System Details:
Input u(t) Output c(t)
Procedure:
1) Write a MATLAB program to obtain response of the system for different
values of zero locations for unit step input.
2) Complete the table given in observations section.
Observations:
a=1; b=2;
Conclusions:
Questions:
1) What is the effect of zero location on system performance?
2) Does zero have any effect on stability?
Objective: To reduce linear systems block diagram using series, parallel and
feedback configuration and obtain resultant transfer function.
Procedure:
1) Obtain resultant transfer function of the system.
2) Calculate step response of the system.
3) Write a MATLAB program to obtain response of the system for given input.
Conclusion:
Results:
System 1 System 2 System3
Theore Simulati Theore Simula Theoreti Simula
tical on tical tion cal tion
Number of branches
Break away/ break in
point
Intersection with jω
axis
range of K for
Stability
Conclusion:
Procedure:
1) Draw bode plots on semi-log paper for the given transfer function & find
Gain margin, Phase margin and their corresponding frequencies.
2) Verify the above values using MATLAB.
Observations:
System1 System2
Theoretical Simulation Theoretical Simulation
Gain Margin
Phase Margin
gain cross over frequency ωcg
phase cross over frequency
ωcp
Conclusion:
Procedure:
1) Draw Nyquist plot on graph paper.
2) Plot Nyquist plot using MATLAB.
Observations:
System1 System2
Theoretical Simulation Theoretical Simulation
Gain Margin
Phase Margin
Conclusion:
Objective: Study the three term (PID) controller and its effects on the feedback
loop response. Investigate the characteristics of the each of proportional (P), the
integral (I), and the derivative (D) controls.
Procedure:
1) Simulate open loop system and observe the response for unit step input.
2) Simulate the closed loop system and observe the response for unit step
input.
3) Simulate the closed loop system with proportional controller and observe
the response for unit step input.
4) Simulate the closed loop system with PI controller and observe the
response for unit step input.
5) Simulate the closed loop system with PD controller and observe the
response for unit step input.
6) Simulate the closed loop system with PID controller and observe the
response for unit step input.
Observations:
Conclusions:
Questions:
1) What is the effect P controller?
2) What is the effect I controller?
3) What is the effect D controller?
4) Does gain of the controller affect the performance of the system and
how?
sys1=feedback(sys,H)
subplot(3,2,3)
step(sys1);
subplot(3,2,4)
pzmap(sys1);
kp=20;
C=kp;
sys2=feedback(C*sys,H)
subplot(3,2,5)
step(sys2);
subplot(3,2,6)
pzmap(sys2);
figure;
ki=20;
C=kp+(ki/s);
sys3=feedback(C*sys,H)
subplot(3,2,1)
step(sys3);
subplot(3,2,2)
pzmap(sys3);
kd=10;
C=kp+(kd*s);
sys4=feedback(C*sys,H)
subplot(3,2,3)
step(sys4);
subplot(3,2,4)
pzmap(sys4);
C=kp+(ki/s)+kd*s;
sys5=feedback(C*sys,H)
subplot(3,2,5)
step(sys5);
subplot(3,2,6)
pzmap(sys5);
Objective: To obtain state space model and step response of a given linear
system.
List of Equipment/Software: MATLAB
System Details: Consider a RLC network with R=1 ohm, L= 1H and C=1F.
Procedure:
1) Obtain state space model of the system considering current flowing
through the inductor i(t) and the voltage across capacitor Vo(t) as state
variables.
2) Write a program to get state space model of the system.
3) From the state space model obtain transfer function.
4) Calculate Eigen values of the system.
5) Obtain state space model in modal from.
6) Plot the unit step response of the system.
Printout: MATLAB Program and response of system.
Conclusion:
clc;
clear all;
close all;
R=0.5;
L=2;
C=1;
[n,d]=ss2tf(A,B,C,D)
disp('Transfer function ');
sys1=tf(n,d)
disp('Eigen values of system ')
eig(A)
disp('System in modal form ');
canon(sys,'modal')
step(sys)
figure
step(sys1)
Objective: To obtain state space model of a given non-linear system and get the
response of the system.
List of Equipment/Software: MATLAB
System Details: Consider a simple pendulum system with m= 0.5 kg, l= 1m.
(1)
(2)
State equations of system are (1) and (2) where k =0.01 N-m-sec, g= 9.8 m/sec 2.
Conclusion:
Procedure:
1. Connections are made as per the circuit diagram.
2. A sinusoidal signal with amplitude of 1V is applied to the circuit.
3. The frequency is varied in steps and at each step frequency, phase angle,
output is noted down.
4. A frequency response characteristic is plotted.
5. From the graph note down M R, ωR , ωC .
6. Plot the frequency response of the system on semi-log paper
7. Compare it with theoretical frequency response.
Conclusion: