Hi Modelica-folks,
Question I:
in my model I would like to check whether a input-connector is connected from the outside or not. If not I have to provide an additional equation within the model. I do not know how to check this. The use of this is: the component should be usable in both cases: being or not being connected. In case of not being connected, i.e. not getting a signal from this input-connector, a standard value should be used.
Question II:
Apart from this: I experimented with the when-expression. If a boolean variable is set to TRUE, an additional equation is provided. But when checking in both cases (TRUE and FALSE) Dymola counts the same number of equations and thus complains about too many equations.
My idea was
when not (connected) then (additional equation) end when;
Or something like this.
I would be pleased with some of your great ideas.
Thank you!
david.