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

Update Continuous.mo #4257

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all 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
4 changes: 2 additions & 2 deletions Modelica/Blocks/Continuous.mo
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package Continuous "Library of continuous control blocks with internal states"
Dialog(group="Initialization"));
parameter Real y_start=0 "Initial or guess value of output (= state)"
annotation (Dialog(group="Initialization"));
extends Interfaces.SISO;
extends Interfaces.SISO(y(start = if initType == Init.SteadyState then y_start else 0.0), fixed = if initType == Init.SteadyState then false else true);
Modelica.Blocks.Interfaces.BooleanInput reset if use_reset "Optional connector of reset signal" annotation(Placement(
transformation(
extent={{-20,-20},{20,20}},
Expand Down Expand Up @@ -144,7 +144,7 @@ port has a rising edge.
annotation (Dialog(group="Initialization"));
parameter Boolean strict=false "= true, if strict limits with noEvent(..)"
annotation (Evaluate=true, choices(checkBox=true), Dialog(tab="Advanced"));
extends Interfaces.SISO;
extends Interfaces.SISO(y(start = if initType == Init.SteadyState then y_start else 0.0), fixed = if initType == Init.SteadyState then false else true);
Modelica.Blocks.Interfaces.BooleanInput reset if use_reset "Optional connector of reset signal" annotation(Placement(
transformation(
extent={{-20,-20},{20,20}},
Expand Down