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 can change significantly from release to release. Obsolete Functions includes a table of obsolete functions and their replacements.

Obsolete FunctionsDeprecated functions and their replacements
Target Language Compiler Function ConventionsFunction syntax, conventions, and common arguments
Input Signal FunctionsFunctions that process and report on input signals
Output Signal FunctionsFunctions that process and report on output signals
Parameter FunctionsFunctions that process model parameters
Block State and Work Vector FunctionsFunctions that handle storage and states
Block Path and Error Reporting FunctionsFunctions for navigating paths and handling error conditions
Code Configuration FunctionsFunctions for tailoring code elements and comments
Sample Time FunctionsFunctions for handling continuous and discrete time
Other Useful FunctionsFunctions not elsewhere classified
Advanced FunctionsFunctions 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.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS