Cs Lab Manual
Cs Lab Manual
TECHNOLOGY
(Affiliated To Visvesvaraya Technological University, Belgaum)
Anandanagar, Bangalore-24
FOURTH SEMESTER
SUBJECT CODE:
BEC403
2024-2025
Scrutinized by:
Dr. Jagadeesh H S
HOD, ECE
DEPARTMENT OF
ELECTRONICS AND COMMUNICATION ENGINEERING
Lab-In charge
Prof. Poornima B
Prof.Ramya CN
Lab Instructor
Mrs.Divyashree.HS Dr. Jagadeesh H S
Professor & Head, Dept. of ECE
ATRIA INSTITUTE OF TECHNOLOGY
(An Autonomous Institution)
Anandanagar, Bengaluru – 560 024
Approved by AICTE, Affiliated to VTU, Belagavi
Accredited by NAAC A++ & NBA
DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING
Semester 4th
Understand basics of control systems and design mathematical models using block
1 diagram reduction, SFG, etc.
2 Understand Time domain and Frequency domain analysis.
3 Analyze the stability of a system from the transfer function
4 Familiarize with the State Space Model of the system.
COURSE OUTCOMES
CO1 Deduce transfer function of a given physical system, from differential equation
representation or Block Diagram representation and SFG representation
CO2 Calculate time response specifications and analyze the stability of the system.
CO3 Draw and analyze the effect of gain on system behavior using root loci
CO4 Perform frequency response Analysis and find the stability of the system.
CO5 Represent State model of the system and find the time response of the system.
4 Implement time response specification of a second order Under damped System, for different
damping factors.
7 Analyze the stability of the given system using Routh stability criterion.
14 Demonstrate the effect of PI, PD and PID controller on the system response.
EXPT 1 :
Implement Block diagram reduction technique to obtain transfer function a control system using MATLAB
AIM :
Determine the transfer function for given closed loop system in block diagram representation.
Theory :
Series configuration: If the two blocks are connected as shown below then the blocks are said
to be in series. It would like multiplying two transfer functions. The MATLAB command for the such
configuration is “series”.
The series command is implemented as shown below
Parallel configuration: If the two blocks are connected as shown below then the blocks are said to
be in parallel. It would like adding two transfer functions
The MATLAB command for implementing a parallel configuration is “parallel” as shown below:
Feedback configuration:
a) When H(s) is non-unity or specified, such a system is said to be a non-unity feedback system as shown below:
The MATLAB command for implementing a feedback system is “feedback” as shown below
Eg 1:
Program
The MATLAB command for implementing a unity feedback system is “feedback” as shown below
Eg2 :
Program:
c)
Result :
EXP2
OUTPUT:
Overall transfer function of the system using Masons Gain Formula:
TF =
3 s^9 + 94 s^8 + 1293 s^7 + 10243 s^6 + 51460 s^5 + 169827 s^4 + 367528 s^3 + 501696 s^2
+ 390528 s + 131328
s^10 + 33 s^9 + 484 s^8 + 4150 s^7 + 23005 s^6 + 85993 s^5 + 219006 s^4 + 374080 s^3 +
408384 s^2 + 255744 s + 69120
Continuous-time transfer function.
EXPT 3:
Simulation of poles and zeros of a transfer function.
AIM :
Plot the pole-zero configuration in s-plane for the given transfer function using SIMULINK
Theory :
The transfer function provides a basis for determining important system response characteristics without solving
the complete differential equation. As defined, the transfer function is a rational function in the complex variable
T(S) =
It is often convenient to factor the polynomials in the numerator and denominator, and to write the transfer
function in terms of those factors
T(s)=
K is gain. As written in above Eq. the zi’s and pi’s are the poles and zeros respectively with the equations
BLOCK DIAGRAM
PROCEDURE:
1. Draw the circuit/Block diagram in SIMULINK
2. RUN
3. Go to analysis and observe poles and zeros of given transfer function in pole-zero plot
RESULT :
EXPT 4 :
Determination of Time Response specification of a second order under damped system, for
different damping factors
AIM :
To obtain the time response specification of a second order system for different damping factors
BLOCK DIAGRAM
PROCEDURE:
1. Draw the circuit/Block diagram
2. RUN
3. Check scope output for time response
4. Go to Command window and give command to check the Time Response specification of a second
order system for different damping factors
GRAPH :
RESULT :
Expt5
Implement frequency response of a second order System
clc;
clear all;
close all;
num1 = 1;
den1 = [1 1.414 1];
w = 0:0.01:pi;
h = freqs(num1, den1, w);
mag = abs(h);
phase = angle(h);
figure;
subplot(2,1,1);
plot(w, mag);
xlabel('Frequency');
ylabel('Magnitude');
title('Magnitude Spectrum of H1');
grid on;
subplot(2,1,2);
plot(w, phase);
xlabel('Frequency');
ylabel('Phase');
title('Phase Spectrum of H1');
grid on;
OUTPUT:
EXPT 6 :
Analyze the stability of the given system using Root locus.
ROOT LOCUS :
The open loop transfer function is G(S) = K / S (S+2)(S2+6S+25) .
Sketch the Root locus
BLOCK DIAGRAM :
Procedure:
1. Draw the Block diagram
2. RUN
3. Check scope output
4. Go to Command window and give command for root locus plot.
RESULT :
EXPT 7:
Analyze the stability of the given system using Bode plots.
AIM : 1. To draw Bode plots for the given transfer function & determine GM, PM, gain cross over
frequency & phase cross over frequency. Comment on stability
2. To sketch Root Locus for the given transfer function
1) BODE PLOT
The open loop transfer function is
G(s) H(s) = 80 / s(s+2)(s+3)
BLOCK DIAGRAM :
GRAPH :
Procedure:
1. Draw the Block diagram
2. RUN
3. From display note down the values of GM, PM, gain cross over frequency & phase cross over frequency
4. Take a screenshot of the bode plot , values of GM, PM, gain cross over frequency & phase cross over
frequency
RESULT :
EXPT 8:
Time response from state model of a system.
AIM : obtain the time response from given state model of a system.
BLOCK DIAGRAM :
or
Procedure:
1. Draw the Block diagram
2. Click on commonly used blocks for gain,adder ,constant and scope.
3. save and cick on RUN and then double click on scope for the wave form.
3. From display note down the changes for different values of state model.
BLOCK DIAGRAM :
Implementation:
Combining actual and PI controller
Procedure:
1. Draw the Block diagram
2. Select the input from source and gain blocks,integrator ,adder and transfer function from
commonly used blocks and give appropriate values of KP and KI
3. save and RUN
3. From display note down the response.
Result:
PD controller
Theory:
BLOCK DIAGRAM :
Implementation
Procedure:
1. Draw the Block diagram
2. Select the input from source and gain blocks,dervative ,adder and transfer function from commonly
used blocks and give appropriate values of Kp and Kd
3. RUN
4. From display note down the response.
Result:
EXPT 10:
Implementation of PID controller.
AIM : To Implement Propotional Intergal and deravative Controller.
Theory:
BLOCK DIAGRAM :
Implementation
Procedure:
1. Draw the Block diagram
2. Select the input from source and gain blocks,dervative ,adder and transfer function from commonly
used blocks and give appropriate values of KP , KI and KD.
3. RUN
4. From display note down the response.