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++.
Implement a new algorithm using MATLAB®
Implement a new algorithm using C/C++ code
Integrate existing C or C++ functions, such as device drivers or external simulation code
Develop S-function to represent external code and inline S-function with Target Language Compiler (TLC) block target file