User`s guide

3 Project Generator
an executable (a MEX le , .mex) for each reference model that is used to
simulate the top model.
When you rebuild reference models for simulations or when you run or update
a simulation, Simulink software rebuilds the model reference les. Whether
reference les or models are rebuilt depends o n whether and how you change
the models and on the Rebuild options settings. You can a ccess these
setting through the Model Reference pane of the Conguration Parameters
dialog box.
Model Reference in Code Generation
Real-Time Workshop software requires executables to generate code from
models. If you have not simulated your model at least once, Real-Time
Workshop software creates a .
mex le for simulation.
Next, for each referenced model, the code generation process calls
make_rtw
and builds each referenced model. This build process creates a library le for
each of the referenced models in your model.
After building a ll the referenced models, Real-Time Workshop software calls
make_rtw on the top m odel, linking to all the library les it created for the
associated referenced models.
Using Model Reference with Embedded IDE Link CC
With few limitations or restrictions, Embedded IDE L ink CC provides full
support for generating code from models that use model reference.
Build Action Setting
The most important re quireme nt for using model reference with the TI’s
processors is that you must set the Build action (go to Conguration
Paramete rs > Em b ed ded IDE Link CC) for all models referred to in the
simulation to
Archive_library.
To set the build action
1 Open your model.
2 Select Simulation > Conguration Parameters from the model menus .
3-78