Closed modelica-trac-importer closed 6 years ago
Comment by dietmarw on 10 Dec 2015 11:58 UTC In addition I strongly recommend to remove the wildcard import statement
import Modelica.Blocks.Interfaces.*;
As we really don't want to encourage that use and as far as I can see it's not even necessary in that example.
Comment by hansolsson on 6 Sep 2016 12:30 UTC Replying to [comment:1 dietmarw]:
In addition I strongly recommend to remove the wildcard import statement
import Modelica.Blocks.Interfaces.\*;
As we really don't want to encourage that use and as far as I can see it's not even necessary in that example.
With the correction to "RealInput spark_advance;" it would be used. The simplest idea is thus to replace it by import Modelica.Blocks.Interfaces.RealInput;
This is also reported in #1763 and thus I close this as duplicate.
Reported by olga.silantyeva on 10 Dec 2015 09:52 UTC I refer to Specification for Modelica 3.3 revision 1 https://www.modelica.org/documents/ModelicaSpec33Revision1.pdf/view.
On page 103 there is an example of using expandable connector:
it can be seen that connect equation in this case connects Real value from spark_plug! but according to p.99
The connect-equation construct takes two references to connectors [a connector is an instance of a connector class],
so the tool gives an error for the example above.
There should be probably some clarifications on this case.
Migrated-From: https://trac.modelica.org/Modelica/ticket/1853