Writing S-Functions | ![]() ![]() |
Introduction
This chapter describes how to create S-functions that work seamlessly with both Simulink and the Real-Time Workshop. It begins with basic concepts and concludes with an example of how to create a highly optimized direct-index lookup table S-function block.
This chapter assumes that you understand these concepts:
See the Target Language Compiler Reference Guide, and the Real-Time Workshop User's Guide for more information about these subjects.
A note on terminology: when this chapter refers actions performed by the Target Language Compiler, including parsing, caching, creating buffers, etc., the name Target Language Compiler is spelled out fully. When referring to code written in the Target Language Compiler syntax, this chapter uses the abbreviation TLC.
![]() | Example - Time Varying Continuous Transfer Function | Classes of Problems Solved by S-Functions | ![]() |