Integration of own C/C++ code

The TwinCAT Target for Simulink® also supports the integration of own C/C++ code in Simulink®. MathWorks® offers several possibilities for this, for example the way via the S Function Builder.

Note that you set the language to "Inherit from model". You can also include libraries as long as they are platform independent and available as source code. For example, the inclusion of a precompiled DLL is not possible.

Integration of own C/C++ code 1: