Algebraic loop: PID control DC motor in Simscape
Mostrar comentarios más antiguos
I am trying to add a PID controller to the elec_motor_dc_pwm.slx DC motor Simscape example:
Original model:

My model:

However, Simscape complains about an algebraic loop in the feedback path.
This answer says models shouldn't contain both "physical signal to simulink" and "simulink to physical signal" converter blocks. (My picture does.) But then how do you design a feedback controller?
This Simscape help page suggests replacing the "PS-to-S" blocks with blocks like "PS Subtract" and "PS Gain". However, there is not a "PS Derivative" block, which would be needed for a PID controller.
Here is a link to these two models.
Thanks for your help.
1 comentario
Sergio
el 10 de Mzo. de 2025
use a delay 1/z in the feedback.....
Respuesta aceptada
Más respuestas (1)
Francisco J. Triveno Vargas
el 9 de Jul. de 2024
1 voto
Only is necessary include the memory block to cancel the algebric loop.
Comunidades de usuarios
Más respuestas en Power Electronics Control
Categorías
Más información sobre Electrical Systems en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!