Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a first figure to Modelica.Blocks.Examples.PID_Controller #4094

Merged
merged 5 commits into from
Jan 24, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Modelica/Blocks/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ works reasonably, since the input to the limiter (PI.limiter.u)
is forced back to its limit after a transient phase.
</p>

</html>"));
</html>", figures = {Figure(title = "Anti-windup compensation", identifier = "anti-windup", preferred = true, plots = {Plot(title = "Reference tracking", identifier = "tracking", curves = {Curve(y = integrator.y, legend = "Reference speed"), Curve(y = inertia1.w, legend = "Actual speed")}), Plot(title = "Anti-windup limiter", identifier = "limiter", curves = {Curve(y = PI.limiter.u, legend = "Input to the anti-windup limiter"), Curve(y = PI.y, legend = "Controller output")})}, caption = "%(plot:tracking) Reference speed (%(variable:integrator.y)) and the actual speed (%(variable:inertia1.w)). The system initializes in steady state, since no transients are present. The inertia follows the reference speed quite good until the end of the constant speed phase. Then there is a deviation.

%(plot:limiter) Here the reason for the deviation can be seen: The output of the controller (%(variable:PI.y)) is in its limits. The anti-windup compensation works reasonably, since the input to the limiter (%(variable:PI.limiter.u)) is forced back to its limit after a transient phase.
henrikt-ma marked this conversation as resolved.
Show resolved Hide resolved
")}));
end PID_Controller;

model Filter "Demonstrates the Continuous.Filter block with various options"
Expand Down