Calling External C Functions in a Function

In addition to functions written in Modelica, you can use external functions written in ANSI / ISO C.

For each external function, it is necessary to declare a Modelica interface. This declaration provides the required information needed to call the function from a Modelica model, and in some simple cases, provide argument conversion.

The following scenario describes a simple use case. For more about external C functions, see www.modelica.org and read the Modelica Specification.

This task shows you how to:


Before you begin: Open the Modelica Editor to edit Modelica text.
See Also
Displaying and Editing Modelica Text