WOLFRAM SYSTEM MODELER
ExternalFunctionsThis example illustrates how to call an external function written in C. |
An external chirp function |
|
A block of an external chirp signal |
|
A circuit using an external chirp signal |
While it is easy to write Modelica functions, it is sometimes convenient to call a subroutine written in C or FORTAN. In this example an external C function is created and then used in a System Modeler model.
For a step by step tutorial see Using External Code.
A Chirp function is defined using an external C-function.
A Chirp block is defined using the function above.
The ChirpSignal block is used to test the resonance frequencies of an electrical circuit.
SystemModel["IntroductoryExamples.ExternalFunctions"]