User`s guide

5 Real-Time Workshop 4.1 Release Notes
5-6
External Mode Enhancements
Inline Parameters Support
The Real-Time Workshop now lets you use the Inline parameters code
generation option when building an external mode target program. When you
inline parameters, you can use the
Model Parameter Configuration dialog to
remove individual parameters from inlining and declare them to be tunable.
This allows you to improve overall efficiency by inlining most parameters,
while at the same time retaining the flexibility of run-time tuning for selected
parameters that are important to your application. In addition, the
Model
Parameter Configuration
dialog offers you options for controlling how
parameters are represented in the generated code.
Each time Simulink connects to a target program that was generated with
Inline parameters on, the target program uploads the current value of its
tunable parameters (if any) to the host. These values are assigned to the
corresponding MATLAB workspace variables. This procedure ensures that the
host and target are synchronized with respect to parameter values.
All targets that support external mode (i.e.,
grt, grt_malloc, and Tornado)
now allow inline parameters.
See “Overview of External Mode Communications” in the Real-Time Workshop
User’s Guide for further information.
Status Bar Display
When Simulink is connected to a running external mode target program, the
simulation time and other status bar information is now displayed and updated
just as it would be in normal mode.
Generate Comments Option
This option lets you control whether or not comments are written in the
generated code. See “Generate Comments” in the Real-Time Workshop User’s
Guide for further information.