User`s guide

3 Working with Real-Time Workshop
3-6
4 Finally, make is invoked. make compiles and links a program from the
generated code, as instructed in the generated makefile.
“Automatic Program Building” on page 2-13 gives an overview of the build
process. “Simulation Parameters and Code Generation” in the Real-Time
Workshop User’s Guide documentation expands on how model data affects
code generation.
Model Parameters and Code Generation
The simulation parameters of your model directly affect code generation and
program building. For example, if your model is configured to stop execution
after 60 seconds, the program generated from your model will also run for 60
seconds.
Before you generate code and build an executable, you must verify that you
have set the model parameters correctly in the
Configuration Parameters
dialog. See “Simulation Parameters and Code Generation” in the Real-Time
Workshop User’s Guide documentation for more information. Real-Time
workshop will refuse to generate code and issue diagnostics when certain
parameters (such as solver type) are set inappropriately. However, when
other parameters (such as hardware
characteristics) have inappropriate
values, code generated by Real-Time Workshop can yield incorrect results.
Real-Time Workshop imposes certain requirements and restrictions on the
model from which code is generated. Some of these, for example the use of
variable-step solvers, are target-specific.
The following sections in the Real-Time Workshop User’s Guide
documentation may help you understand restrictions on code generation that
may apply:
“Choosing a Code Format for Your Application” compares features that
Real-Time Workshop supports for different targets.
“Parameters: Storage, Interfacing, and Tuning” describes how Real-Time
Workshop structures parameter data.
“C-API for Interfacing with Signals and Parameters” provides more
advanced information on how to access parameter data in generated code.