User`s guide
12 Configuring Real-Time Workshop for Your Application
12-2
Introduction
This chapter discusses how Simulink interacts with the Real-Time Workshop
and also describes how to customize the code generated by the Real-Time
Workshop for your application. The last section of this chapter describes
several optimization techniques that will improve the performance of the
generated code.
The Real-Time Workshop provides five different code formats.Eachcode
format specifies a framework for code generation suited for specific
applications.
The five code formats and corresponding application areas are:
• Real-time — Rapid prototyping
• Real-time malloc — Rapid prototyping
• Embedded-C — Deeply embedded systems
• S-function — Creating proprietary S-function
.dll or MEX-file objects, code
reuse, and speeding up your simulation
• Ada (the Real-Time Workshop Ada Extension is a separate product. See
Chapter 14, “Real-Time Workshop Ada Coder,” for more information.)
Apart from specifying the code format, you can also specify a target.Atargetis
a hardware or operating system on which the generated code will run. Some
examples of targets are Tornado, rapid simulation, DOS, etc. You can compile
these targets for different operating systems by using the different template
make files provided. See Chapter 3, “Code Generation and the Build Process”,
for more details about the build process.
Interaction between Simulink
and the Real-Time Workshop
The Real-Time Workshop provides much of the functionality that Simulink
does and often removes the need for users to hand-write code.