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

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 

Recently uploaded (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 

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