Toolvito

Calculates on this device. File exports run online.

Nyquist Plot Generator

Type the open loop L(s) = K N(s) ÷ D(s), with a dead time if it has one, or its poles, zeros and gain. You get the Nyquist plot, the number of open-loop poles in the right half-plane P, the clockwise encirclements of −1 N and the closed-loop poles in the right half-plane Z = N + P, with the gain and phase margins.

Enter your values

Your values

Coefficients from the highest power, or an expression in s such as 10(s + 2).

Such as s(s + 1)(s + 10) or 1, 11, 10, 0.

More options

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

Encirclements counted on the server

Encirclements counted on the server

Uses the open loop of the result above. The server counts the encirclements of −1 again on its own contour (NumPy), gives python-control's count and the closed-loop poles (without dead time) and draws the Nyquist plot.

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use the Nyquist plot generator

  1. Choose Numerator and denominator and type N(s), D(s) and the gain K, for example 100 and s(s + 1)(s + 10). Or choose Poles, zeros and gain.
  2. Under More options add a dead time.
  3. Press Calculate. The chart shows L(jω) for positive frequencies and its mirror image for negative ones, with the point −1.
  4. The box under the result counts the encirclements again on the server and draws the plot as a picture.

The Nyquist criterion

  • P: the poles of the open loop in the right half-plane.
  • N: how many times the curve goes clockwise round −1 as s goes round the whole right half-plane (counter-clockwise turns count as negative). Poles on the imaginary axis are passed on small half circles.
  • Z = N + P: the poles of the closed loop in the right half-plane. The closed loop is stable when Z = 0.
  • If the curve passes through −1 the closed loop has poles on the imaginary axis: it is on the edge of stability.

Worked example

L(s) = 100 ÷ (s (s + 1)(s + 10)): P = 0 and the curve does not go round −1, so Z = 0 and the loop is stable, but only just: the gain margin is 0.83 dB and the phase margin 1.6°. With K = 2 the curve goes round −1 twice: two closed-loop poles in the right half-plane.

L(s) = 4 ÷ ((s − 1)(s + 2)) has one unstable open-loop pole (P = 1); the curve goes once counter-clockwise round −1 (N = −1), so Z = 0: the feedback makes it stable.

Limits you should know

  • Linear, time-invariant loops with one input and one output; the numerator may not have a higher degree than the denominator.
  • Points very far from the origin (near poles on the imaginary axis) are left out of the drawing; the count uses the whole contour.

Related tools