SlideShare a Scribd company logo
1 of 21
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

LAB # 3(A)
System Response
OBJECT:
To study the System response for different order systems, natural frequency and damping ratio, Peak
response, settling time, Rise time, steady state, using MATLAB commands and LTI Viewer.

THEORY:
Generally we have two types of responses, Steady State Response and Transient response such as rise
time, peak time, maximum overshoot, settling time etc.
n=[1 1];

Zero/pole/gain:

d=[2 4 6];

0.5 (s+1)

S1=tf(n,d)

--------------

size(S1) %no. of inputs and outputs.

(s^2 + 2s + 3)

pole(S1) % no.of poles .
pzmap(S1) %pole/zero map.

Eigenvalue

Damping

K=dcgain(S1)

-1.00e+000
1.73e+000

zpk(S1) % zero /pole/gain .

-1.00e+000 - 1.41e+000i

damp (S1) % damping coefficients.

wn =

[wn,z] = damp(S1) % naturalfrequency

1.41e+000i

5.77e-001

5.77e-001

1.73e+000

1.7321

step(S1) % assinging input for analysis

+

Freq. (rad/s)

1.7321
z=

Transfer function:
s+1

0.5774
0.5774

--------------2 s^2 + 4 s + 6
Transfer function with 1 outputs and 1 inputs.
ans =
-1.0000 + 1.4142i
-1.0000 - 1.4142i
K=
0.1667

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

zeta= [0.3 0.6 0.9 1.5]; % zeta funtion is assigned
with four different values.
for k=1:4; % k is assigned from 1-4 so as to run the
program four times in a loop.
num=[0 1 2]
den=[1 2*zeta(k) 1]; % den take out four different
values of zeta .
TF=tf(num,den)
step(TF)
hold on; % hold on restores the previous graphs.
end; % end represent the completion
num =
0

1

2

Transfer function:
s+2
--------------s^2 + 0.6 s + 1
num =
0 1

Transfer function:
s+2
--------------s^2 + 1.2 s + 1
num =
0

1

2

Transfer function:
s+2
--------------s^2 + 1.8 s + 1
num =
0

1

2

Transfer function:
s+2
------------s^2 + 3 s + 1

2

Exercise:
1. Given the transfer
function, G(s) = a/(s+a),
Evaluate settling time and
rise time for the following
values of a= 1, 2, 3, 4.
Also, plot the poles.
for k=1:4;
num=[k]
den=[1 k];
TF=tf(num,den)
step(TF)
hold on;
end

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Lab task:
Task# 1:

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Task# 2a:
num=[25];
>> den=[1 4 25];
>> trans=tf(num,den);
>> step(trans);
>> zero(trans)

p=pole(t1)
p=
-2.0000 + 4.5826i2.0000 - 4.5826i
>> z=zero(t1)
z=
Empty matrix: 0by-1
>> y=pzmap (t1)

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Task # 2b
>> trans=tf(num,den)
G(s)= b/s^2+as+b
Coefficent of damping I will represent with
C
poles= -C wn + -j wn sqrt 1-C^2
wn sqrt 1-C^2= 5*sqrt 1-a4^2=4.5826
C wn= 4 now wn=6.0828 & C=0.6575
Tp= .6949, Ts=1.0139, OS = .0645
a=7.89, b=36

Transfer function:
36
----------------s^2 + 7.86 s + 36
>> step(trans)

num=[36];
den=[1 7.86 36];

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

p=pole(t1)
p=
-4.0000 + 4.5826i
-4.0000 - 4.5826i
>> z=zero(t1)
z =Empty matrix: 0-by-1
>> y=pzmap(t1)
y =-4.0000 + 4.5826i
-4.0000 - 4.5826i

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Task # 2c:
Calculate the values of a and b so that the imaginary part of the poles remains the same, but the real
part is decreased ½ time over that of (a), and repeat the 2(a).
num=[22];
>> den=[1 2 22];
>> trans=tf(num,den);
>> step(trans)
>>zero(trans)
ans =
Empty matrix: 0-by-1

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

p=pole(t1)
p=
-1.0000 + 4.5826i
-1.0000 - 4.5826i
>> z=zero(t1)
z =Empty matrix: 0-by-1
>> y=pzmap(t1)
y=
-1.0000 + 4.5826i
-1.0000 - 4.5826i

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Task # 3a:
For the system of prelab 2(a) calculate the values of a and b so that the realpart of the poles remains
the same but the imaginary part is increased 2times ove that of prelab 2(a) and repeat prelab 2(a)
A=4,b=88
num=[88];
>> den=[1 4 88];
>> trans=tf(num,den);
>> step(trans)

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

p=pole(t1)
p=
-2.0000 + 9.1652i
-2.0000 - 9.1652i
z=zero(t1)
z=
Empty matrix: 0-by-1
>> y=pzmap(t1)
y=
-2.0000 + 9.1652i
-2.0000 - 9.1652i

Task # 3b
CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

For the system of prelab 2(a) calculate the values of a and b so that the realpart of the poles remains
the same but the imaginary part is increased 4times over that of prelab 2(a) and repeat prelab 2(a)
A=4,b=340
num=[340];
>> den=[1 4 340];
>> trans=tf(num,den)
Transfer function:
340
--------------s^2 + 4 s + 340
>> step(trans)

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

p=pole(t1)
p=
-2.0000 +18.3303i
-2.0000 -18.3303i
>> z=zero(t1)
z=
Empty matrix: 0-by-1
>> y=pzmap(t1)
y=
-2.0000 +18.3303i
-2.0000 -18.3303i

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Task # 4a
For the system of 2(a), calculate the values of a and b so that the damping ratio remains the same, but
the natural frequency is increased 2 times over that of 2(a), and repeat 2(a).
num=[100];
>> den=[1 8 100];
>> trans=tf(num,den)
Transfer function:
100
--------------s^2 + 8 s + 100
>> step(trans)

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Task # 4b:
CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

For the system of 2(a), calculate the values of a and b so that the damping ratio remains the same, but
the natural frequency is increased 4 times over that of 2(a), and repeat 2(a).
eeta=0.4
>> omega=20
omega=20
>> b=omega*omegab =400
>> a=2*eeta*omegaa =16
>> num=[b]num=400
>> den=[ 1 a b]
den =
1 16 400
>> t=tf([num],[den])
Transfer function:
400
s^2 + 16 s + 400

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Exercise:
Using Simulink, set up the systems of Q 2. Using the Simulink LTI Viewer, plot the step response of each
of the 3 transfer functions on a single graph.
a=tf([25],[1 4 25]);
>> b=tf([37],[1 8 37]);
>> c=tf([22],[1 2 22]);
>> step(a,b,c)

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

task # 3:
Using Simulink, set up the systems of Q2(a) and Q3. Using the Simulink LTI Viewer, plot the step
response of each of the 3 transfer functions on a single graph.
c=tf([25],[1 4 25]);
>> b=tf([88],[1 4 88]);
>> a=tf([340],[1 4 340]);
>> step(a,b,c)

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

Task # 4:
Using Simulink, set up the systems of Q 2(a) and Q 4. Using the Simulink LTI Viewer, plot the step
response of each of the 3 transfer functions on a single graph.
a=tf([25],[1 4 25]);
>> b=tf([100],[1 8 100]);
>> c=tf([400],[1 16 400]);
>> step(a,b,c)

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14
TALHA WAQAR EE-805

PAKISTAN NAVY ENGINEERING COLLEGE NUST

CONTROL SYSTEM LAB SYSTEM RESPONSE
DATED: 25-FEB-14

More Related Content

What's hot

Supervisory control of discrete event systems for linear temporal logic speci...
Supervisory control of discrete event systems for linear temporal logic speci...Supervisory control of discrete event systems for linear temporal logic speci...
Supervisory control of discrete event systems for linear temporal logic speci...AmiSakakibara
 
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]AI Robotics KR
 
Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...
Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...
Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...Federico Cerutti
 
Algorithm Selection for Preferred Extensions Enumeration
Algorithm Selection for Preferred Extensions EnumerationAlgorithm Selection for Preferred Extensions Enumeration
Algorithm Selection for Preferred Extensions EnumerationFederico Cerutti
 
Performance Portability Through Descriptive Parallelism
Performance Portability Through Descriptive ParallelismPerformance Portability Through Descriptive Parallelism
Performance Portability Through Descriptive ParallelismJeff Larkin
 
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]AI Robotics KR
 
A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...
A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...
A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...Federico Cerutti
 
A Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkA Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkJaewook. Kang
 
A Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkA Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkJaewook. Kang
 
SPU Optimizations - Part 2
SPU Optimizations - Part 2SPU Optimizations - Part 2
SPU Optimizations - Part 2Naughty Dog
 
Arima model (time series)
Arima model (time series)Arima model (time series)
Arima model (time series)Kumar P
 
GTC16 - S6510 - Targeting GPUs with OpenMP 4.5
GTC16 - S6510 - Targeting GPUs with OpenMP 4.5GTC16 - S6510 - Targeting GPUs with OpenMP 4.5
GTC16 - S6510 - Targeting GPUs with OpenMP 4.5Jeff Larkin
 
Presentation on binary search, quick sort, merge sort and problems
Presentation on binary search, quick sort, merge sort  and problemsPresentation on binary search, quick sort, merge sort  and problems
Presentation on binary search, quick sort, merge sort and problemsSumita Das
 
0006.scheduling not-ilp-not-force
0006.scheduling not-ilp-not-force0006.scheduling not-ilp-not-force
0006.scheduling not-ilp-not-forcesean chen
 

What's hot (20)

Supervisory control of discrete event systems for linear temporal logic speci...
Supervisory control of discrete event systems for linear temporal logic speci...Supervisory control of discrete event systems for linear temporal logic speci...
Supervisory control of discrete event systems for linear temporal logic speci...
 
Chapter 7 1
Chapter 7 1Chapter 7 1
Chapter 7 1
 
bode_plot By DEV
 bode_plot By DEV bode_plot By DEV
bode_plot By DEV
 
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
 
Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...
Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...
Argumentation Extensions Enumeration as a Constraint Satisfaction Problem: a ...
 
Cerutti -- TAFA2013
Cerutti -- TAFA2013Cerutti -- TAFA2013
Cerutti -- TAFA2013
 
Algorithm Selection for Preferred Extensions Enumeration
Algorithm Selection for Preferred Extensions EnumerationAlgorithm Selection for Preferred Extensions Enumeration
Algorithm Selection for Preferred Extensions Enumeration
 
Performance Portability Through Descriptive Parallelism
Performance Portability Through Descriptive ParallelismPerformance Portability Through Descriptive Parallelism
Performance Portability Through Descriptive Parallelism
 
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
 
A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...
A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...
A SCC Recursive Meta-Algorithm for Computing Preferred Labellings in Abstract...
 
A Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkA Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB Simulink
 
A Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkA Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB Simulink
 
03 dc
03 dc03 dc
03 dc
 
SPU Optimizations - Part 2
SPU Optimizations - Part 2SPU Optimizations - Part 2
SPU Optimizations - Part 2
 
Merge sort and quick sort
Merge sort and quick sortMerge sort and quick sort
Merge sort and quick sort
 
Arima model (time series)
Arima model (time series)Arima model (time series)
Arima model (time series)
 
parallel
parallelparallel
parallel
 
GTC16 - S6510 - Targeting GPUs with OpenMP 4.5
GTC16 - S6510 - Targeting GPUs with OpenMP 4.5GTC16 - S6510 - Targeting GPUs with OpenMP 4.5
GTC16 - S6510 - Targeting GPUs with OpenMP 4.5
 
Presentation on binary search, quick sort, merge sort and problems
Presentation on binary search, quick sort, merge sort  and problemsPresentation on binary search, quick sort, merge sort  and problems
Presentation on binary search, quick sort, merge sort and problems
 
0006.scheduling not-ilp-not-force
0006.scheduling not-ilp-not-force0006.scheduling not-ilp-not-force
0006.scheduling not-ilp-not-force
 

Similar to Lab 3 nust control

Tarea 2 francisco_moya_mena_a74449_grupo02
Tarea 2 francisco_moya_mena_a74449_grupo02Tarea 2 francisco_moya_mena_a74449_grupo02
Tarea 2 francisco_moya_mena_a74449_grupo02FrankMoya3
 
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptxSTEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptxAnikendu Maitra
 
nagoor kani-763-790.pdf book formula for transform
nagoor kani-763-790.pdf book formula for transformnagoor kani-763-790.pdf book formula for transform
nagoor kani-763-790.pdf book formula for transformNIETMsSaranyaRAsstPr
 
Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfWaleedHussain30
 
Time-Response Lecture
Time-Response LectureTime-Response Lecture
Time-Response Lectures2021677
 
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPEREC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPERVISHNUPRABHANKAIMAL
 
Transient response analysis
Transient response analysisTransient response analysis
Transient response analysisasari_dear
 
Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68Gopinath.B.L Naidu
 
RF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF TransceiversRF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF TransceiversSimen Li
 
Control system ppt by biru.pptx
Control system ppt by biru.pptxControl system ppt by biru.pptx
Control system ppt by biru.pptxSubhradipjana
 
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIRMATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIREditor IJMTER
 
Solucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdf
Solucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdfSolucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdf
Solucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdfSANTIAGO PABLO ALBERTO
 
Lecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systemsLecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systemsSaifullah Memon
 

Similar to Lab 3 nust control (20)

Tarea 2 francisco_moya_mena_a74449_grupo02
Tarea 2 francisco_moya_mena_a74449_grupo02Tarea 2 francisco_moya_mena_a74449_grupo02
Tarea 2 francisco_moya_mena_a74449_grupo02
 
ACS 22LIE12 lab Manul.docx
ACS 22LIE12 lab Manul.docxACS 22LIE12 lab Manul.docx
ACS 22LIE12 lab Manul.docx
 
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptxSTEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
 
1st-order-system.pdf
1st-order-system.pdf1st-order-system.pdf
1st-order-system.pdf
 
Note 11
Note 11Note 11
Note 11
 
lcs_manual_1[1].pdf
lcs_manual_1[1].pdflcs_manual_1[1].pdf
lcs_manual_1[1].pdf
 
Matlab Nn Intro
Matlab Nn IntroMatlab Nn Intro
Matlab Nn Intro
 
nagoor kani-763-790.pdf book formula for transform
nagoor kani-763-790.pdf book formula for transformnagoor kani-763-790.pdf book formula for transform
nagoor kani-763-790.pdf book formula for transform
 
Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdf
 
Time-Response Lecture
Time-Response LectureTime-Response Lecture
Time-Response Lecture
 
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPEREC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
 
Transient response analysis
Transient response analysisTransient response analysis
Transient response analysis
 
Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68
 
RF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF TransceiversRF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF Transceivers
 
Control system ppt by biru.pptx
Control system ppt by biru.pptxControl system ppt by biru.pptx
Control system ppt by biru.pptx
 
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIRMATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
 
Solucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdf
Solucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdfSolucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdf
Solucionario circuitos eléctricos 6ta Edición Dorf Svoboda.pdf
 
Lecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systemsLecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systems
 
Ae11 sol
Ae11 solAe11 sol
Ae11 sol
 

Recently uploaded

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 

Recently uploaded (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

Lab 3 nust control

  • 1. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST LAB # 3(A) System Response OBJECT: To study the System response for different order systems, natural frequency and damping ratio, Peak response, settling time, Rise time, steady state, using MATLAB commands and LTI Viewer. THEORY: Generally we have two types of responses, Steady State Response and Transient response such as rise time, peak time, maximum overshoot, settling time etc. n=[1 1]; Zero/pole/gain: d=[2 4 6]; 0.5 (s+1) S1=tf(n,d) -------------- size(S1) %no. of inputs and outputs. (s^2 + 2s + 3) pole(S1) % no.of poles . pzmap(S1) %pole/zero map. Eigenvalue Damping K=dcgain(S1) -1.00e+000 1.73e+000 zpk(S1) % zero /pole/gain . -1.00e+000 - 1.41e+000i damp (S1) % damping coefficients. wn = [wn,z] = damp(S1) % naturalfrequency 1.41e+000i 5.77e-001 5.77e-001 1.73e+000 1.7321 step(S1) % assinging input for analysis + Freq. (rad/s) 1.7321 z= Transfer function: s+1 0.5774 0.5774 --------------2 s^2 + 4 s + 6 Transfer function with 1 outputs and 1 inputs. ans = -1.0000 + 1.4142i -1.0000 - 1.4142i K= 0.1667 CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 2. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST zeta= [0.3 0.6 0.9 1.5]; % zeta funtion is assigned with four different values. for k=1:4; % k is assigned from 1-4 so as to run the program four times in a loop. num=[0 1 2] den=[1 2*zeta(k) 1]; % den take out four different values of zeta . TF=tf(num,den) step(TF) hold on; % hold on restores the previous graphs. end; % end represent the completion num = 0 1 2 Transfer function: s+2 --------------s^2 + 0.6 s + 1 num = 0 1 Transfer function: s+2 --------------s^2 + 1.2 s + 1 num = 0 1 2 Transfer function: s+2 --------------s^2 + 1.8 s + 1 num = 0 1 2 Transfer function: s+2 ------------s^2 + 3 s + 1 2 Exercise: 1. Given the transfer function, G(s) = a/(s+a), Evaluate settling time and rise time for the following values of a= 1, 2, 3, 4. Also, plot the poles. for k=1:4; num=[k] den=[1 k]; TF=tf(num,den) step(TF) hold on; end CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 3. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Lab task: Task# 1: CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 4. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Task# 2a: num=[25]; >> den=[1 4 25]; >> trans=tf(num,den); >> step(trans); >> zero(trans) p=pole(t1) p= -2.0000 + 4.5826i2.0000 - 4.5826i >> z=zero(t1) z= Empty matrix: 0by-1 >> y=pzmap (t1) CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 5. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 6. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Task # 2b >> trans=tf(num,den) G(s)= b/s^2+as+b Coefficent of damping I will represent with C poles= -C wn + -j wn sqrt 1-C^2 wn sqrt 1-C^2= 5*sqrt 1-a4^2=4.5826 C wn= 4 now wn=6.0828 & C=0.6575 Tp= .6949, Ts=1.0139, OS = .0645 a=7.89, b=36 Transfer function: 36 ----------------s^2 + 7.86 s + 36 >> step(trans) num=[36]; den=[1 7.86 36]; CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 7. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST p=pole(t1) p= -4.0000 + 4.5826i -4.0000 - 4.5826i >> z=zero(t1) z =Empty matrix: 0-by-1 >> y=pzmap(t1) y =-4.0000 + 4.5826i -4.0000 - 4.5826i CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 8. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Task # 2c: Calculate the values of a and b so that the imaginary part of the poles remains the same, but the real part is decreased ½ time over that of (a), and repeat the 2(a). num=[22]; >> den=[1 2 22]; >> trans=tf(num,den); >> step(trans) >>zero(trans) ans = Empty matrix: 0-by-1 CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 9. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST p=pole(t1) p= -1.0000 + 4.5826i -1.0000 - 4.5826i >> z=zero(t1) z =Empty matrix: 0-by-1 >> y=pzmap(t1) y= -1.0000 + 4.5826i -1.0000 - 4.5826i CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 10. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Task # 3a: For the system of prelab 2(a) calculate the values of a and b so that the realpart of the poles remains the same but the imaginary part is increased 2times ove that of prelab 2(a) and repeat prelab 2(a) A=4,b=88 num=[88]; >> den=[1 4 88]; >> trans=tf(num,den); >> step(trans) CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 11. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST p=pole(t1) p= -2.0000 + 9.1652i -2.0000 - 9.1652i z=zero(t1) z= Empty matrix: 0-by-1 >> y=pzmap(t1) y= -2.0000 + 9.1652i -2.0000 - 9.1652i Task # 3b CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 12. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST For the system of prelab 2(a) calculate the values of a and b so that the realpart of the poles remains the same but the imaginary part is increased 4times over that of prelab 2(a) and repeat prelab 2(a) A=4,b=340 num=[340]; >> den=[1 4 340]; >> trans=tf(num,den) Transfer function: 340 --------------s^2 + 4 s + 340 >> step(trans) CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 13. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST p=pole(t1) p= -2.0000 +18.3303i -2.0000 -18.3303i >> z=zero(t1) z= Empty matrix: 0-by-1 >> y=pzmap(t1) y= -2.0000 +18.3303i -2.0000 -18.3303i CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 14. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Task # 4a For the system of 2(a), calculate the values of a and b so that the damping ratio remains the same, but the natural frequency is increased 2 times over that of 2(a), and repeat 2(a). num=[100]; >> den=[1 8 100]; >> trans=tf(num,den) Transfer function: 100 --------------s^2 + 8 s + 100 >> step(trans) CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 15. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Task # 4b: CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 16. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST For the system of 2(a), calculate the values of a and b so that the damping ratio remains the same, but the natural frequency is increased 4 times over that of 2(a), and repeat 2(a). eeta=0.4 >> omega=20 omega=20 >> b=omega*omegab =400 >> a=2*eeta*omegaa =16 >> num=[b]num=400 >> den=[ 1 a b] den = 1 16 400 >> t=tf([num],[den]) Transfer function: 400 s^2 + 16 s + 400 CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 17. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 18. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Exercise: Using Simulink, set up the systems of Q 2. Using the Simulink LTI Viewer, plot the step response of each of the 3 transfer functions on a single graph. a=tf([25],[1 4 25]); >> b=tf([37],[1 8 37]); >> c=tf([22],[1 2 22]); >> step(a,b,c) CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 19. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST task # 3: Using Simulink, set up the systems of Q2(a) and Q3. Using the Simulink LTI Viewer, plot the step response of each of the 3 transfer functions on a single graph. c=tf([25],[1 4 25]); >> b=tf([88],[1 4 88]); >> a=tf([340],[1 4 340]); >> step(a,b,c) CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 20. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST Task # 4: Using Simulink, set up the systems of Q 2(a) and Q 4. Using the Simulink LTI Viewer, plot the step response of each of the 3 transfer functions on a single graph. a=tf([25],[1 4 25]); >> b=tf([100],[1 8 100]); >> c=tf([400],[1 16 400]); >> step(a,b,c) CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14
  • 21. TALHA WAQAR EE-805 PAKISTAN NAVY ENGINEERING COLLEGE NUST CONTROL SYSTEM LAB SYSTEM RESPONSE DATED: 25-FEB-14