Integrate Existing Code
Integrate existing Fortran or C/C++ functions using S-functions or Legacy Code Tool.
You can integrate existing code in your models using different tools in Simulink®. To implement Fortran code in your models, you can use Fortran S-functions. To implement existing C/C++ code in your models, you can use Legacy Code Tool.
- Integrate Legacy Code
Integrate existing C or C++ functions, such as device drivers or external simulation code - Integrate Fortran Code
Implement Fortran code in custom Simulink blocks