| Real-Time Workshop® | ![]() |
This chapter provides a set of Target Language Compiler functions that are useful for inlining S-functions. The TLC files contain many other library functions, but you should use only the functions that are documented in these reference pages for development. Undocumented functions can change significantly from release to release. Obsolete Functions includes a table of obsolete functions and their replacements.
| Obsolete Functions | Deprecated functions and their replacements |
| Target Language Compiler Function Conventions | Function syntax, conventions, and common arguments |
| Input Signal Functions | Functions that process and report on input signals |
| Output Signal Functions | Functions that process and report on output signals |
| Parameter Functions | Functions that process model parameters |
| Block State and Work Vector Functions | Functions that handle storage and states |
| Block Path and Error Reporting Functions | Functions for navigating paths and handling error conditions |
| Code Configuration Functions | Functions for tailoring code elements and comments |
| Sample Time Functions | Functions for handling continuous and discrete time |
| Other Useful Functions | Functions not elsewhere classified |
| Advanced Functions | Functions generally required only for special situations |
You can find examples using these functions in matlabroot/toolbox/simulink/blocks/tlc_c. The corresponding MEX S-function source code is located in matlabroot/simulink/src. M-file S-functions and the MEX-file executables (for example, sfunction.mex*) are located in matlabroot/toolbox/simulink/blocks. Clicking one of the preceding directory names changes to that directory in MATLAB® and shows the directory contents in the MATLAB Current Directory browser.
![]() | Error Reporting | Obsolete Functions | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |