User`s guide
Introduction
14-3
Real-Time Workshop Ada Coder Applications
Like the Real-Time Workshop, the Real-Time Workshop Ada Coder supports a
variety of real-time applications:
• Real-Time Control − You can design your control system using MATLAB and
Simulink and generate Ada code from your block diagram model. You can
then compile and download the Ada code directly to your target hardware.
• Hardware-in-the-Loop Simulation − You can use Simulink to model real-life
measurement and actuation signals. You can use the code generated from
the model on special-purpose hardware to provide a real-time representation
of the physical system. Applications include control system validation,
training simulation, and fatigue testing using simulated load variations.
Supported Compilers
The Real-Time Workshop Ada Coder supports the GNAT Ada Compiler version
3.11.
Supported Targets
The Real-Time Workshop Ada Coder supports the following targets:
• Ada Simulation Target — useful for validating generated code. This does not
use Ada tasking primitives.
• Ada Multitasking Real-Time Target — useful as a starting point for
targeting real-time systems. This uses Ada tasking primitives.
You can also add your own target by creating a system target file, make
process, and run-time interface files along with any device drivers using Ada
inlined C MEX S-functions.
The Generated Code
The generated code (i.e., the model code) is highly optimized, fully commented,
and can be generated from any discrete-time Simulink model — linear or
nonlinear.