Main Content

External Code Integration

S-Function blocks written in C++

To model your design, you can integrate external software with your real-time application. You can access external software with Simulink® S-Function blocks written in C++.

Topics

Implement Algorithms Using MATLAB

Implement a new algorithm using MATLAB®

Implement Algorithms Using C/C++ Code

Implement a new algorithm using C/C++ code

Implement Algorithms Using Legacy Code Tool

Integrate existing C or C++ functions, such as device drivers or external simulation code

S-Functions

Develop S-function to represent external code and inline S-function with Target Language Compiler (TLC) block target file

External Code Integration of Libraries and C/C++ Code with Simulink Real-Time Models

Examine considerations for external code integration and Simulink Real-Time™ models.

Featured Examples