Writing S-Functions | ![]() ![]() |
Introduction
There are two main strategies to executing Fortran code from Simulink. One is from a Level 1 Fortran-MEX (F-MEX) S-function, the other is from a Level 2 gateway S-function written in C. Each has its advantages and both can be incorporated into code generated by the Real-Time Workshop.
![]() | Building C++ S-Functions | Level 1 Versus Level 2 S-Functions | ![]() |