Professional Documents
Culture Documents
Taxonomy
CLO No. CLO Statement Domain
Level
1 Follow instructions to complete your tasks. Psychomotor 3
2 Practice the rules and regulations of lab Affective 4
Page 1 | 3
NFC Institute of Engineering& Technology, Multan
Department of Electrical Engineering
Figure 1
Question Declare the system of your own Gs and trace the following responses using
[1] (30)
1 fig. 1
Roll no. 2K16-ELE-02 To 2K16-ELE-39
To trace the step and impulse response of the given system transfer function
Task 1 5
using MATLAB
To trace state space model and respond to its stability using MATLAB for
Task 2 5
question 1.
Task 3 To reproduce the response of the discrete time systems using Simulink 5
Task 4 Trace The Root Locus Analysis of Discrete Time Systems 5
Trace the response of discrete time system using PI controller. It should
Task 5 10
have %O.S = 2 %, Ts = 2 sec.
Roll no. 2K16-ELE-42 To 2K16-ELE-142 & 2K15-ELE-94
To trace the step and impulse response of the given system transfer function
Task 1 5
using MATLAB
To trace state space model and respond to its stability using MATLAB for
Task 2 5
question 1.
Task 3 To reproduce the response of the discrete time systems using Simulink 5
Task 4 Trace the response of lead compensator for discrete time system 5
Trace the response of PID Controller Design using Ziegler-Nichols Method.
Task 5 10
State necessary assumptions.
Question
Viva [1]
2
For All Students
Practice the rules and regulations of lab
[2] 5
All the instructions mentioned in this exam serves as rules and regulation
To trace the step and impulse response of the given system transfer function using MATLAB:
Syntax
clc
clear all
close all
num=[1]
Page 3 | 3
NFC Institute of Engineering& Technology, Multan
Department of Electrical Engineering
dem=[1 1]
s=tf('s')
G=TF(num,dem)
step((1/s)*G)
figure
cnum=[1]
dem=[1 1 ]
s=tf('s')
G=TF(num,dem)
step(G)
figure
num=[1]
dem=[1 1]
s=tf('s')
G=TF(num,dem)
step((1/s^2)*G)
figure
num=[1]
dem=[1 1]
s=tf('s')
G=TF(num,dem)
step(((1/s)*s)*G)
n=[4 5]
d=[4 4 8]
g=tf(n,d)
step(g)
s=tf('s')
nu=[4 5]
de=[4 4 8]
g=tf(nu,de)
impulse(g)
Theory:
In signal processing, the impulse response, or impulse response function (IRF), of a dynamic system is its output when presented with a brief input
signal, called an impulse. More generally, an impulse response is the reaction of any dynamic system in response to some external change.
Step response:
the output of a device in response to an abrupt change in voltage.
Task 2:
Syntax
A = [-1.5,-2;1,0];
B = [0.5;0];
C = [0,1];
D = 0;
sys = ss(A,B,C,D)
Task 3
To reproduce the response of the discrete time systems using Simulink:
Theory:
The discrete-time system models are representational schemes for digital filters. The MATLAB® technical computing environment supports several discrete-time
system models, which are described in the following sections:
Code:
b = [2 3 4];
a = [1 3 3 1];
q = roots(b)
p = roots(a)
% Gain factor
k = b(1)/a(1)
bb = k*poly(q)
aa = poly(p)
b = [-4 8];
a = [1 6 8];
[r,p,k] = residuez(b,a)
imp = [1 0 0 0 0];
resptf = filter(b,a,imp)
respres = filter(r(1),[1 -p(1)],imp)+...
filter(r(2),[1 -p(2)],imp)
Task 4
Trace the response of lead compensator for discrete time system
clear all
close all
% task 1
num=[3 1]
den=[3 2 1]
T=tf(num,den)
s=tf('s')
[A,B,C,D]=tf2ss(num,den)
Sys=ss(A,B,C,D)
[r,p,k]=residue(num,den)
pzmap(T)
% Task 2
figure
num=[1 2]
den=[3 4 5]
T=tf(num,den)
s=tf('s')
[A,B,C,D]=tf2ss(num,den)
Sys=ss(A,B,C,D)
[r,p,k]=residue(num,den)
pzmap(T)
% Task 3
figure
num=[4 8]
den=[1 6 8]
T=tf(num,den)
X=feedback(T,1)
s=tf('s')
[A,B,C,D]=tf2ss(num,den)
Sys=ss(A,B,C,D)
[r,p,k]=residue(num,den)
pzmap(T)
% Task 4
figure
num=[4 8]
Task 5
A recent opinion piece published in the trade magazine Control Engineering proposed that the
Ziegler-Nichols tuning rule would serve as the basis for a coming new generation of PID
technology: "Improved performance, ease of use, low cost, and training will put Ziegler and
Nichols in the driver's seat..." [1] Well, maybe so, but it seems to us that Ziegler-Nichols tuning is a very limited technology that is unlikely to be
successful in that role. The rest of this article will explain why, exploring how to use the rule and where things can go wrong.
1. The ratio of output level to input level at low frequencies determines the gain parameter K of the model.
2. Observe the frequency Fu at which the phase passes through -pi radians (-180 degrees). The inverse of this frequency is the period of the
oscillation, Tu.
3. Observe the plant gain Kc that occurs at the critical oscillation frequency Fu. The inverse of this is the gain margin Ku.
4. Apply the frequency Fu to the plant first order lag terms to solve for the model's a term.
6. The rest of the 180 degrees of phase shift are assigned to the pure time delay term.
In practice, you don't need to construct the complete model, and you can stop after completing step 3 above.