| Version 3.1 (R13SP1) Real-Time Workshop® Embedded Coder™ Software Release Notes | ![]() |
This table summarizes what's new in Version 3.1 (R13SP1):
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems | Related Documentation at Web Site |
|---|---|---|---|
| Yes Details below | No | No bug fixes | No |
New features and changes introduced in this version are described here:
The Model Assistant Tool is a utility that lets you configure a model for code generation quickly. The Model Assistant Tool also helps you to identify aspects of your model that impede production deployment or limit code efficiency. You can use the Model Assistant Tool at any point in your design cycle, as it is completely independent from the code generation process.
The Model Assistant Tool is designed primarily for use with Real-Time Workshop Embedded Coder. It works most effectively with the Embedded Real-Time (ERT) target and with ERT-based targets (such as the Embedded Target for Motorola MPC555). It will also operate with other targets.
The figure below shows the top-level window of the Model Assistant Tool.

Four main components of the Model Assistant Tool provide a powerful and centralized interface for configuring settings for Simulink blocks, Stateflow charts, models and subsystems. You select these components via the four buttons at the top of the Model Assistant display:
General Code Generation Goals
Detailed Code Generation Goals
Model Advisor
Search and Modify
These components are summarized in the next sections.
This component lets you quickly configure code generation settings based on specific goals, such as whether to optimize for RAM or ROM usage. Once you have decided the overall optimization and tradeoffs for your application, the Model Assistant Tool will select the model settings that best suit your goals.
This component presents a centralized interface to the available code generation options. Options are grouped by category, and are applied across products.
The Model Advisor component is particularly useful early in the design cycle. It provides an analysis of your model to ensure that you best utilize Real-Time Workshop Embedded Coder. You can check selected aspects of your model settings (for example, to identify possible inefficiencies such as blocks that generate saturation and rounding code) or choose Select All for a comprehensive analysis.
This component is a powerful model search and modify engine. It reduces the effort of configuring a model block by block. The search feature helps you find attributes of blocks, lines, input ports, output ports, and annotations quickly. The modify feature lets you perform rapid batch operations on the search results. Frequently performed tasks are packaged conveniently into a single button click.
The Search and Modify component includes the following features:
The Frequent tasks page lets you quickly perform common actions.
The Simulink object search page lets you specify a general Simulink object search and modify action. This search mechanism is useful when you know the specific names of underlying attributes.
The Stateflow object search page lets you quickly configure the Stateflow data in your model. This is particularly useful for converting data from floating point to fixed-point types.
The Search and replace Simulink text page lets you quickly modify text for objects in Simulink. For example, you can change all occurrences of 'K1' to 'K2'. The semantics of the search and replace are the same as for the Stateflow search and replace tool that ships with Stateflow.
Two Parameter name search mechanisms are provided:
Search and modify parameters using prompt strings. This search mechanism is useful when you know the parameter by its dialog prompt string, but you don't know the name of the underlying attribute.
"Fuzzy" search using property and/or value pairs. This search mechanism is useful for isolating the name of an underlying attribute.
You run Model Assistant Tool from the MATLAB command line, via the modelassistant command. Before invoking the Model Assistant Tool, make sure that the desired target (such as the ERT target) is selected in the Target Configuration section of the Real-Time Workshop pane of the Simulation Parameters dialog box.
The following examples illustrate the modelassistant command syntax and its possible arguments.
To obtain detailed help on the Model Assistant Tool, type
modelassistant('help')To invoke the Model Assistant Tool for the root system of a model, type
modelassistant('model')where model is the name of the model.
To invoke the Model Assistant Tool for a particular subsystem in a model, type
modelassistant('subsystem')where subsystem is the name of the subsystem.
You can also invoke the Model Assistant Tool for models and systems using the built-in Simulink bdroot, gcb, and gcs commands. For example:
modelassistant(gcs)
The above sections have summarized the main features of the Model Assistant Tool. To obtain full online documentation on the Model Assistant Tool, type
modelassistant('help')There are also three demo models available for the Model Assistant Tool: advisordemo1, advisordemo2, and advisordemo3.
![]() | Version 3.2 (R13SP1+) Real-Time Workshop Embedded Coder Software | Compatibility Summary for Real-Time Workshop Embedded Coder Software | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |