PID practice

PIDLAB LEARN · ENGINEERING PRACTICE

Understand PID. Test it on a model.

Start with a concrete task: understand the signals, read a plot or compare two tunings. Each material includes a diagram, a short example and a next step in the lab.

After reading. You will be able to explain what the controller changes, what the plot shows and how to test a tuning.

Tell SP, PV and MV apart

Imagine a heater: you want 60 °C, but the sensor reads 55 °C. SP is the target temperature and PV is the measurement. Their difference, an error of 5 °C, tells the controller how far the process is from the target.

The controller changes MV: power in percent. The temperature then changes, the sensor measures again and the cycle repeats. The PID explanation shows how P, I and D contribute to that action.

Understand P, I and D

How a heating feedback loop closesThe 60 °C setpoint SP is compared with a 55 °C measurement PV. The 5 °C error enters the PID, which changes heater power MV. The new measurement feeds back into the comparison. Temperature and power use different units.SetpointSP = 60 °CError: SP − PVe = 60 − 55 = 5 °CPID controllercalculates MVPlant: heatingpower MV, %MeasurementPV = 55 °CMVSP, PV, e: °C · MV: % power
Reading the loop: the target is 60 °C and the measurement is 55 °C. The controller changes power, not the measurement itself. Arrows show signal direction.

Read the plot after a setpoint change

In the sketch, SP steps from 40 to 60 °C. PV approaches the target gradually and first goes above it. That excursion is called overshoot.

MV reacts before the temperature. Read both plots: reaching SP quickly may require abrupt output movement. The simulation lesson helps you find these signals on an actual stand.

Open the lesson: observe SP, PV and MV

Reading temperature and power togetherIn the upper plot, dashed SP changes from 40 to 60 °C. Solid PV responds later, overshoots and returns to the target. In the lower plot, dotted MV in percent rises immediately and then decreases. Time axes align, while variable scales are separate.Temperature, °CSP – – PV ━6040SP steptime →Power, %MV · · ·1000time →PV: does it overshoot SP?MV: what effort reaches the target?
Illustrative curves, not a PIDLAB simulation result. Above: SP/PV temperature in °C. Below: MV power in %. Compare the timing of changes, not line heights on different scales.

Check whether a tuning improved

A testable question: will a smaller Ti reduce residual error without extra oscillation? First run A with the baseline tuning. Then restore the initial state, change only Ti and repeat the same SP step.

The result is a comparison of plots and conditions, not just a new set of coefficients. The tuning material explains how to assess overshoot, settling and output limits.

Compare two tunings step by step

How to compare tunings A and BOne baseline stand, state and SP step feed two separate experiments. A uses the baseline Kp, Ti and Td. Restore the initial state before B and change one parameter. Compare both results using PV and MV.One baselinesame stand, state and SP stepRun A · baselineKp, Ti, TdRun B · hypothesischange only TiCompare PV and MVerror, overshoot, time, limits
Two separate runs from the same state. Change one PID parameter between A and B; keep the model, SP step and observation duration identical.

Your first PIDLAB experiment

Open the introductory lesson, sign in to the workspace and run a ready-made stand for the first time. You can read the guide without an account.

Start your first experiment

PIDLAB — an engineering laboratory for PID loops. Simulation does not replace validation on the real plant.