| Writing S-Functions | ![]() |
Writing Wrapper S-Functions
This section describes how to create S-functions that work seamlessly with Simulink and the Real-Time Workshop using the wrapper concept. This section begins by describing how to interface your algorithms in Simulink by writing MEX S-function wrappers (sfunction.mex). It finishes with a description of how to direct the Real-Time Workshop to insert your algorithm into the generated code by creating a TLC S-function wrapper (sfunction.tlc).
| S-Function Module Names for Real-Time Workshop Builds | MEX S-Function Wrapper | ![]() |