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.
1. Unstable open-loop and closed-loop poles
Starting conditions
, ,1. Use negative unity feedback.
Procedure
- Count P, the number of open-loop right-half-plane poles.
- Plot the Nyquist plot for each K, and directly calculate Z, the number of closed-loop poles in the right half-plane.
- 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
- 2 Nyquist plots and an assessment table.
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 , compare .
Procedure
- Find the gain margin, phase margin, and corresponding crossover frequencies using margin(K*G).
- Report gain margin separately as a linear ratio and in dB using 20log10.
- Examine each set of closed-loop poles and time response, and explain the relationship between margins and stability.
Results to retain
- A margin table and response comparison plot.
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
- Compare gain and phase on both grids.
- Describe the information missed when assessing crossover points and stability margins using only three sparse points.
- Record both calculated values and visual evidence to distinguish assessment results from plot resolution.
Results to retain
- A plot comparing resolutions and a brief interpretation.
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?