This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Integrate External C Code Using C Caller Block

Integrate simple external C code into Simulink® by importing C functions

Use the C Caller block to integrate your C code into Simulink models. The C Caller block resolves source C code and extracts the functions to utilize in your Simulink models. C Caller block only supports models with no dynamic states and variables. To include dynamic states and variables in your model, see Implement C/C++ S-Functions.

Generating code using the C Caller block eliminates the need for writing Target Language Compiler (TLC) files.


C CallerIntegrate C code in Simulink


Integrate C Code Using C Caller Blocks

Integrate C Code in Simulink models using C Caller block

Featured Examples