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
 
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
 
1 Mathematical Model of System - 280822.pdf
1 Mathematical Model of System - 280822.pdf1 Mathematical Model of System - 280822.pdf
1 Mathematical Model of System - 280822.pdfHanantoAdityaDewanta
 

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
 
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
 
1 Mathematical Model of System - 280822.pdf
1 Mathematical Model of System - 280822.pdf1 Mathematical Model of System - 280822.pdf
1 Mathematical Model of System - 280822.pdf
 

Recently uploaded

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 

Recently uploaded (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 

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