User`s guide
14 Real-Time Workshop Ada Coder
14-4
All Simulink blocks are automatically converted to code, with the exception of:
• MATLAB function blocks
• Any continuous sample time blocks
• S-functions that are not inlined using the Target Language Compiler
See “Supported Blocks” on page 14–21 for a list of supported blocks.
Types of Output
The Real-Time Workshop Ada Coder’s interface supports two forms of output:
• Ada code − Generate code that contains system equations and initialization
functions for the Simulink model. You can use this code in real-time
applications.
• A real-time program − Transform the generated code into a real-time
program suitable for use with dedicated real-time hardware. The resulting
code is designed to interface with an external clock source and hence runs at
a fixed, user-specified sample rate.
Supported Blocks
See “Supported Blocks” on page 14-21 for a complete list of the Simulink blocks
supported by the Real-Time Workshop Ada Coder.
Restrictions
The Real-Time Workshop Ada Coder has the same constraints imposed upon it
as the embedded-C target. The code generator does not produce code that
solves algebraic loops, and Simulink blocks that are dependent on absolute
time can be used only if the program is not intended to run for an indefinite
period of time.
There are additional constraints for the Ada code generation. The Real-Time
Workshop Ada Coder does not provide:
• Nonreal-time variable step integration models
• Continuous-time integration
• Since Ada does not support implicit upcasting of data types, all numerical
operations in your model must be of homogeneous data types for Ada code