PID control (2025 exam): velocity PI control (b), Matlab Simulation (step, bode)

Antonio Sala, UPV

Difficulty: *** ,       Relevance: PIC,      Duration: 14:17

Materials:    [ Cód.: sau25testcontrollersb.mlx ] [ PDF ]

Summary:

This video simulates the pen-and-paper control design carried out in videos [p2252aEN] (preliminaries) and [p2252bEN] (actual PI design via pole placement), which were part of an examination to my students.

In here, we discuss the Matlab code to generate the closed-loop dynamics and we simulate it with three controllers, all of them assigning the setpoint poles at s = −16 to fulfill the settling time specification. The three controllers are:

The second and third options were valid in said examination. Here, we plot their closed-loop time response (step response to both a setpoint step and a disturbance step) and their closed-loop frequency response (only amplitude Bode diagrams), and comment upon what can be concluded from said plots.

Note that closed-loop frequency response analysis isn’t that common in a first undergraduate control course and, indeed, it was not taught in my course. Nevertheless, for a more advanced student, it is indeed advisable that you watch through the frequency-response analysis in the second half of the video. You might wish to review the basic definitions of closed-loop frequency response concepts in video [rfbc] (in Spanish, but auto-dubbing might work for you).

*Link to my [ whole collection] of videos in English. Link to larger [ Colección completa] in Spanish.

© 2026, A. Sala. All rights reserved for materials from authors affiliated to Universitat Politecnica de Valencia.
Please consult original source/authors for info regarding rights of materials from third parties.