User`s guide

5 Real-Time Workshop 4.1 Release Notes
5-4
Build Directory Validation
The build process now disallows building programs in the MATLAB directory
tree. If you attempt to generate code in the MATLAB directory tree, an error
message will be displayed prompting you to change to a working directory that
is not in the MATLAB directory tree. On a PC, you can continue to build in the
directory
matlabroot/Work.
The build process also prevents building programs when
matlabroot has a
dollar sign (
$) in its MATLAB directory name.
Build Subsystem Enhancements
The Build Subsystem feature, introduced in Real-Time Workshop 4.0, lets you
generate code and build an executable from any nonvirtual subsystem within
a model. In Real-Time Workshop 4.1, the Build Subsystem feature has been
enhanced as follows:
The
Build Subsystem window now displays additional information about
block parameters referenced by the subsystem.
From the
Build Subsystem window, you can now inline any parameter or set
the storage class of any parameter.
See “Generating Code and Executables from Subsystems” in the Real-Time
Workshop User’s Guide for further information.
C API for Parameter Tuning Documented
The Real-Time Workshop provides data structures and a C API that enable a
running program to access model parameters without use of external mode.
This API has now been fully documented.
To access model parameters via the C API, you generate a model-specific
parameter mapping file,
model_pt.c. This file contains parameter mapping
arrays containing information required for parameter tuning.
See “C API for Parameter Tuning” in the Real-Time Workshop User’s Guide for
information on how to generate and use the parameter mapping file.