Course materials · Control Engineering II
Programming language

Frequency-Domain Stability

English translation

Before simulating all time responses, try assessing stability from the frequency response and open-loop poles.

The Python option uses python-control. If the module is missing, run %pip install control==0.10.2 in a Colab or Jupyter code cell.

MATLAB · Control System Toolbox

Before practice

01 What information is easy to miss when viewing only a Nyquist plot?

Description

The number of open-loop right-half-plane poles, the encirclement direction, and the sign convention.

02 Do gain margin and phase margin have the same units?

Description

Gain margin is a ratio or dB value; phase margin is an angle. Use separate units in the table.

Practice

Preview practice notebookDownload practice notebookPreview practice mlx scriptDownload practice mlx script

1. Unstable open-loop and closed-loop poles

Starting conditions

G(s)=s2+10s+24s2−8s+15G(s)=\frac{s^2+10s+24}{s^2-8s+15}, K=.5K=.5,1. Use negative unity feedback.

Procedure

  1. Count P, the number of open-loop right-half-plane poles.
  2. Plot the Nyquist plot for each K, and directly calculate Z, the number of closed-loop poles in the right half-plane.
  3. State your sign convention for the direction of encirclements of -1, and check the relationship among P, the encirclement count, and Z.

Results to retain

Items to record and points to check
K
P
Number and direction of encirclements
Z
Closed-loop stability

Points to check

  • Did you avoid concluding that the closed loop is unstable solely because it has open-loop poles?
  • Does the Nyquist assessment agree with the calculated closed-loop poles?

2. Stability margins and gain changes

Starting conditions

For G(s)=50s3+9s2+30s+40G(s)=\frac{50}{s^3+9s^2+30s+40}, compare K∈{1,3,5}K\in\{1,3,5\}.

Procedure

  1. Find the gain margin, phase margin, and corresponding crossover frequencies using margin(K*G).
  2. Report gain margin separately as a linear ratio and in dB using 20log10.
  3. Examine each set of closed-loop poles and time response, and explain the relationship between margins and stability.

Results to retain

Items to record and points to check
K
GM [ratio]
GM [dB]
PM [deg]
Crossover ω [rad/s]
Stability

Points to check

  • Did you distinguish GM as a linear ratio from its dB value?
  • Did you leave undefined or infinite margins labeled as such?

3. Changing the frequency range

Starting conditions

For the same G, compare examining only ω=[.1,1,10] with examining logspace(-2,3,1000).

Procedure

  1. Compare gain and phase on both grids.
  2. Describe the information missed when assessing crossover points and stability margins using only three sparse points.
  3. Record both calculated values and visual evidence to distinguish assessment results from plot resolution.

Results to retain

Items to record and points to check
Frequency grid
Observed crossover
Calculated GM and PM
Limits of the assessment

Points to check

  • Did you specify the observed frequency range and sample count?
  • Did you distinguish calculated margins from visually estimated margins?