Writing S-Functions | ![]() ![]() |
How Simulink Interacts with C S-Functions
It is helpful in writing C MEX-file S-functions to understand how Simulink interacts with S-functions. This section examines the interaction from two perspectives: a process perspective, i.e., at which points in a simulation Simulink invokes the S-function, and a data perspective, i.e., how Simulink and the S-function exchange information during a simulation.
![]() | Compiling C S-Functions | Process View | ![]() |