Back to the glossary

Embedded and systems

Closed-loop testing

In closed-loop testing, the simulated environment continuously reacts to the outputs of the device under test, forming a closed control loop. Open-loop testing instead plays back fixed inputs without feedback.

Also known as: open-loop testing, closed loop, open loop

Open loop: playing back inputs

In open-loop testing, the DUT receives predefined input signals, for example a ramp or a recorded test drive. Its outputs are measured and evaluated, but they have no influence on the next inputs.

This is simple to set up and highly reproducible. It suits signal processing, diagnostics or individual reactions: “When the pressure rises above 5 bar, the valve opens.”

Closed loop: the environment reacts

As soon as the DUT controls something, fixed inputs are no longer enough. If the valve opens, the pressure has to drop, and the controller has to see that. A plant model therefore continuously calculates how the environment reacts to every actuator output.

Closed-loop tests are the core of HiL. They usually need real-time simulation, because the model has to keep pace with the control unit’s cycle.

Both have their place

Many test suites combine the two: open loop for fast, targeted checks of individual functions, closed loop for control behaviour and realistic scenarios.