Writing S-Functions | ![]() ![]() |
Multiport S-Function Example
A more advanced multiport inlined S-function example exists in matlabroot
/simulink/src/sfun_multiport.c
and matlabroot
/toolbox/simulink/blocks/tlc_c/sfun_multiport.tlc
. This S-function demonstrates how to create a fully inlined TLC file for an S-function that contains multiple ports. You might find that looking at this example aids in the understanding of fully inlined TLC files.
![]() | Fully Inlined S-Functions | Fully Inlined S-Function with the mdlRTW Routine | ![]() |