User`s guide

Introduction
14-5
generation. You can, however, perform explicit upcasting using the Data
Type Conversion block in Simulink.
S-Functions
S-functions provide a mechanism for extending the capabilities of Simulink.
They allow you to write your own Ada code and incorporate it into the Simulink
model as an S-function block in the generated code.
Ada MEX-files are not supported. You can use MEX-files in the Real-Time
Workshop Ada Coder by first developing S-functions as C MEX-files or M-files
for use with Simulink simulations. After the S-function has been tested with
Simulink, you must create a TLC file that directs the Target Language
Compiler to create Ada code that performs the algorithms defined in your
S-function. See the Target Language Compiler Reference Guide for more
information. Also, see examples located in
matlabroot/simulink/src and the
TLC files in
matlabroot/toolbox/simulink/blocks/tlc_ada.
The Real-Time Workshop Ada Coder generates code for a Simulink model and
compiles the generated code (along with the appropriate application modules)
to produce a stand-alone program that executes independently of Simulink.