Question: a ) Given a reference r ( t ) = sin ( 0 . 3 1 6 t ) , by observation, determine the value

a) Given a reference r(t)= sin(0.316 t), by observation, determine the value of k at which the system becomes unstable
b) Given the same reference r(t)= sin(0.316 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 =1;
s = tf ([10],1) ;
H =1/ s ^2;
PID =1+0.1* s +0.01/ s ;
G = PID * H ;
% Simulation
t = linspace (0,100,100000) ;
w_pc =0.316;
r = sin ( w_pc * t ) ;
y = lsim (( K * G )/(1+ 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 =0.001; % Parameter to update input delay
K =1;
s = tf ([10],1) ;
H =1/ s ^2;
H_tau = tf ( H . Numerator , H . Denominator ,' InputDelay ', delay ) ;
PID =1+0.1* s +0.01/ s ;
G2_prime = H_tau * PID ;
5
% Simulation
t = linspace (0,100,100000) ;
w_pc =0.316;
r2= sin ( w_pc * t ) ;
y2= lsim ( minreal ( K * G2_prime /(1+ K * G2_prime )), r2, t ) ;
% Figure
figure ()
clf ;
hold on
plot (t , r2)
plot (t , y2)
xlabel (' time ( t )')
ylabel (' output ( y )')
title (" Phase margin - time ( t ) vs output ( y )")
legend (' Reference r ( t )',' Output y ( t )')
a ) Given a reference r ( t ) = sin ( 0 . 3 1 6 t

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!