Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » MP
  • » Profile

Posts

Posts

OK, thanks, that sounds reasonable.

Do you know any way to restrict possible connections to input-to-output connections only (so that input-input (or output-output) connections will not be allowed)?

Why does OpenModelica allow to connect an input-type connection port to another input-type connection port?

A model check of the attached TestModel, for example, runs successfully without any errors or warnings.
If I understood it correctly, only connections between an input and an output port/variable should be allowed...

Test.mo

I encountered the following issue when simulating the example "Interaction1" from Modelica library ("Modelica.Blocks.Examples.Interaction1") in OpenModelica: This examples contains a block "Modelica.Blocks.Interaction.Show.RealValue", thus I was expecting that the number in the respective block (in Diagram Window) would update when changing the time slider position after simulation (according to its description: "Show Real value from numberPort or from number input field in diagram layer dynamically"). However, the value stays "0.0", irrespective of the current time.

Does anybody know what might be the reason for this issue?

  • Index
  • » Users
  • » MP
  • » Profile
You are here: