Target Language Compiler    

TLC Function Library Reference


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 may change significantly from release to release. A table of obsolete functions and their replacements is shown in Obsolete Functions.
Obsolete Functions
Deprecated functions and their replacements
Target Language Compiler Functions
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 (e.g., sfunction.dll) for matlabroot/simulink/src are located in matlabroot/toolbox/simulink/blocks.

  Error Reporting Obsolete Functions