Question: Does MapleSim support the Modelica language model?

I have tried to create a function "modelica style" that acts as a custom component.

The Modelica code editor recognizes it.  It correctly sees the language constructs "function, parameter, etc." and then the block has the {} symbology showing it is a function.  Also, the Syntax Template doesn't seem to work per chapter 07.  i.e., the reference of "function" plus CTL-SHIFT-SPACE does nothing. 

However, trying to call this does not work and errors that the function is being called from main as a public declaration and gving the named function "myfunction_1" instantiation within main which errors out.

    Modelica coide in Main:   public MyFunction myfunction_1 annotation(Placement(transformation(origin={120.0,160.0},extent={{-20.0,-20.0},{20.0,20.0}},rotation=0)));

MyFunction is declared below Main along with another custom component model class "UseMyFunction" that calls this function with the variables being used in the simulation.

Where can I find the modelica language references that MapleSim accepts in the modelica coding region?

This mini-attempt is to find the usage syntax and method to reach higher custom functions that act similar to "Math" code blocks in the library.

Bill

Please Wait...