![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1575262/image.png)
How to solve Algebraic Loops in half car model with PID controller
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1575067/image.png)
6 comentarios
Sam Chak
el 24 de Dic. de 2023
Hi @Mücahit
There is no algebraic loop error message when I run the Simulink file. I added a Scope to check the signals, and they are stable. Perhaps @Sulaymon Eshkabilov can also take a look.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1575537/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1575542/image.png)
Respuestas (2)
Sulaymon Eshkabilov
el 23 de Dic. de 2023
By glancing at your Simulink model, that looks ok without seeing f(u)'s. I can see the problem is in f(u) function definitions. I would check f(u) for acceleration calcs.
Sulaymon Eshkabilov
el 24 de Dic. de 2023
There are a couple of derivative blocks in your model that creates all instability (spikes are occuring due to derivatives at t=0, i.e., Any/0 = inf) related issue at the start of your simulation. A possible solution can be:
(1) Switch the derivative block with a some sort of transfer function, e.g., TFD(s) = s/(tau_D*s+1)
(2) Include the derivative term into the PID's transfer fucntion
0 comentarios
Ver también
Categorías
Más información sobre General Applications en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!