Scripts

Code snippet for calculating gains according to requirements

% Proportional gain (V.s/rad)
 
kp = (2*zeta*wn*tau-1)/(K)
 
% Integral gain (V/rad)
 
ki = wn^2*tau/K

Models

Variant Subsystem Block

Subsystems

Results

Given Parameters

K = 19.0; % dc gain
tau = 0.165; % time constant
tp = 0.3; % peak time (s)
PO = 5; % percent overshoot (%)

Calculated Parameters

zeta = 0.6901 % damping ratio
wn = 14.4699 % natural frequency
kp = 0.1208 % proportional gain
ki = 1.8183 % integral gain

Overview

Using and

tp = 0.22; % peak time (s)
PO = 11.7; % % percent overshoot (%)

Using and

System is not underdamped

Using and

tp = 0.3; % peak time (s)
PO = 5; % percent overshoot (%)

Conclusion

  • Requirements satisfied
  • Best peak time comes from using , but overshoot becomes significantly worse
  • System did not become underdamped when using

Assets