Real-Time Workshop | ![]() ![]() |
Open Architecture of Real-Time Workshop
Real-Time Workshop is an open system designed for use with a wide variety of operating environments and hardware types. Figure 1-4 shows how you can extend key elements of Real-Time Workshop.
You can configure the Real-Time Workshop program generation process to your own needs by modifying the following components:
model
.mdl
), and emits code suitable for a traditional high-level language (HLL) compiler.
S-functions written in C let you extend the Simulink VHLL by adding new general purpose blocks, or incorporating legacy code into a block.
The S-function API includes a special function, mdlRTW
, that lets you customize the code generation process by inserting parameter data from your own blocks into the model
.rtw
file.
You can customize the elements of the TLC program in two ways. First, you can implement your own system target file, which controls overall code generation parameters. Second, you can implement block target files, which control how code is generated from individual blocks such as your own S-function blocks.
Figure 1-4: Real-Time Workshop Architecture
model
.mk
, controls the compilation and linking of generated code. Real-Time Workshop generates model
.mk
from a template makefile during the code generation and build process. You can create a custom template makefile to control compiler options and other variables of the make
process.
All of these components contribute to the process of transforming a Simulink model into an executable program. The topics in the next section point you to documentation describing each of them.
![]() | Rapid Prototyping for Control Systems | Where to Find Help | ![]() |