Question: a ) Given a reference r ( t ) = sin ( 0 . 3 1 6 t ) , by observation, determine the value
a Given a reference rt sin t by observation, determine the value of k at which the system becomes unstable
b Given the same reference rt sin t by observation, determine the time delay at which the original system becomes unstable
HINTS :
The described system can be simulated using the following code in
MATLAB.
clear ;
clc ;
close all ;
System
K ;
s tf ;
H s ;
PID s s ;
G PID H ;
Simulation
t linspace ;
wpc ;
r sin wpc t ;
y lsim K G K G r t ;
Figures
figure
clf ;
hold on
plot t r
plot t y
xlabel time t
ylabel output y
title Gain margin time t vs output y
legend Reference r t Output y t
A time delay on the input can be simulated using the following code.
clear ;
clc ;
close all ;
System
delay ; Parameter to update input delay
K ;
s tf ;
H s ;
Htau tf H Numerator H Denominator InputDelay delay ;
PID s s ;
Gprime Htau PID ;
Simulation
t linspace ;
wpc ;
r sin wpc t ;
y lsim minreal K Gprime K Gprime r t ;
Figure
figure
clf ;
hold on
plot t r
plot t y
xlabel time t
ylabel output y
title Phase margin time t vs output y
legend Reference r t Output y t
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
