Lab Report CS 3

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 9

EEE325– Control Systems

Lab # 03
To Measure Time-Domain Performance of the System and
the Effect of Disturbance in a Closed-Loop Control System
using LabVIEW

Name Ubaid Ur Rehman

Registration Number FA18-BEE-121

Class FA18-BSEE-E

Instructor’s Name Sir Abubakar Talha Jalil

1
LAB #3: To Measure Time-Domain Performance of the System and
the Effect of Disturbance in a Closed-Loop Control System using
LabVIEW
Objective
 To Measure performance of the system through time domain performance parameters using
LabVIEW and compare the performance of an open-loop and closed-loop system by measuring the
Effect of Disturbance, using LabVIEW
Required:
Software
 MATLAB/LABVEIW

Methodology
In this we establish adequate performance specifications Performance specifications can be presented in
the time domain or the frequency domain. Time-domain specifications generally take the form of settling
time, percent overshoot, rise time, and steady-state error we use feedback in a control system to Decrease
the sensitivity of the system to plant variations. Enable adjustment of the system’s transient response,
Reject disturbance, and Reduce steady-state tracking error in this lab we learn about performance
parameter which include percent overshoot (𝑃.𝑂), rise time (𝑡𝑟), peak time (𝑡𝑝), settling time (𝑡𝑠) and
steady-state error (𝑒𝑠𝑠) in this lab we learn about the electric traction motor control mobile robot steering
control and speed tachometer system and we learn about their block diagram in lab experiment we learn
about The open-loop block diagram description of the armature-controlled DC motor with a load torque
disturbance we also do their disturbance analysis and performance analysis
Conclusion
In this lab we learn about the performance parameter of different systems and how to be presented in time
domain and frequency domain.It also helped to familiarization with systems, their types and transfer
function. With the help of LabVIEW different systems and their combinations were observed and their
responses of different types of inputs were observed. LabVIEW helped to construct the equivalent
mathematical model of a complicated system. State-Space Model of the system was implemented on
LabVIEW and its behaviour was observed.
Lab tasks
Lab task 1 (Disturbances analysis)
Part 1
%FA18-BEE-121
clc
close all
Ra=1;
kt=10;
kb=0.1;
j=2;
b=0.5;
num=[1];
den=[j b];
sys=tf(num,den);
sys1=(-kb)*kt/Ra;
a=feedback(sys,sys1,1);
open=-1*a;
stepinfo(open)
[y,t]=step(open);
z=length(t);
plot(y)
steady_state_speed=y(z);

OUTPUT

ans =

RiseTime: 2.9293
SettlingTime: 5.2161
SettlingMin: -0.6666
SettlingMax: -0.6030
Overshoot: 0
Undershoot: 0
Peak: 0.6666
PeakTime: 14.0611

Part 2
%FA18-BEE-121
clc
clear all
close all
Ra=1;
kt=10;
kb=0.1;
j=2;
b=0.5;
gain=1;
num=1;
den=[j b];
sys1=tf(num,den);
sys2=((-54-kb)*(kt/Ra));
m1=-feedback(sys1,sys2,1);
[y,t]=step(m1);
stepinfo(m1);
steady_state_speed=y(length(t));
plot(y)
output

Lab task 2 (Performance analysis)


Part 1
clc
close all
ra=1;
kt=10;
kb=0.1;
j=2;
b=0.5;
num=kt;
dnum=[ra*j ra*b];
sys=tf(num,dnum);
sys1=kb;
sys2=feedback(sys,sys1);
[y,t]=step(sys2);
plot(y);
stepinfo(sys2);
output

Part 2
clc
close all
ra=1;
kt=10;
kb=0.1;
j=2;
b=0.5;
num=kt;
dnum=[ra*j ra*b];
sys=tf(num,dnum);
sys1=kb;
sys2=feedback(sys,sys1);
sys3=sys2*54;
sys4=feedback(sys3,1);
[y,t]=step(sys4);
plot(y)
stepinfo(sys4)
output
ans =

RiseTime: 0.0081
SettlingTime: 0.0144
SettlingMin: 0.9020
SettlingMax: 0.9972
Overshoot: 0
Undershoot: 0
Peak: 0.9972
PeakTime: 0.0390

Post task 4
clc
clear all
close all
%dsturbance analysis

Ka=20;
sysb=1
num2=[5*Ka];
den2=[1 20 0];
sysf=tf(num2,den2)
sys=feedback(sysf,sysb)
sysrer=11/10;
sysori=sysrer*sys
sysback=12/10
sysasas=feedback(sysori,sysback)
stepinfo(sysasas)
ess=abs(dcgain(1-sys))
ess1=abs(dcgain(1-sysasas))
[Y,t] = step(sysasas);
a=length(t);
Steady_State_time=Y(a)

Post task 5
clc
clear all
close all
%dsturbance analysis
%R(s)--->Y(s)
K=10;
sysb=1
num2=[11 K]
den2=[1 1 0]
sysf=tf(num2,den2)
sys=feedback(sysf,sysb)

step(sys)
stepinfo(sys)
ess=abs(dcgain(1-sys))
[Y,t] = step(sys);
a=length(t);
Steady_State_time=Y(a)

%D(s)--->Y(s)
num=[11 K]
den=[1]
sysb1=tf(num,den)
num2=[1]
den2=[1 1 0]
sysf1=tf(num2,den2)
sys1=feedback(sysf1,sysb1)
figure
step(sys1)
stepinfo(sys1)
ess1=abs(dcgain(1-sys1))
[Y1,t1] = step(sys1);
a1=length(t1);
Steady_State_time1=Y(a1)

You might also like