User`s guide

2 Getting Started with the Real-Time Workshop
2-6
6. Incorporating Legacy Code into Generated Code
Legacy code, or hand-written code, is existing code that you want to interface
with Real-Time Workshop generated code. To interface legacy code with the
Real-Time Workshop, you can use an S-function wrapper to do this; see
Chapter 4 of Writing S-Functions for more information.
7. Communicating With Device Drivers
S-functions provide a flexible method for communicating with device drivers.
See “Implementing Device Drivers” on page 10-7 for a description of how to
build device drivers. Also, for a complete discussion of S-functions, see Writing
S-Functions.
8. Code Tracing
The Real-Time Workshop includes special tags throughout the generated code
that make it easy to trace the code back to your Simulink model. See “Tracing
Generated Code Back to Your Simulink Diagram” on page 2-26 for more
information about this feature.
9. Automatic Build Procedure
The Real-Time Workshop is designed so that you can generate code with the
push of a button. The automatic build procedure generates code, a template
make file, and optionally (cross-) compiles and downloads a program all via the
Build button on the Real-Time Workshop page of the Simulation Parameters
dialog box. See “Automatic Program Building” on page 3-3 for a complete
description.
10. Parameter Tuning
Parameter tuning is the ability to change parameters on-the-fly without
recompiling the generated code. The Real-Time Workshop supports parameter
tuning in four different environments: