Version 3.1 (R13SP1) Real-Time Workshop Embedded Coder Software

This table summarizes what's new in Version 3.1 (R13SP1):

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known ProblemsRelated Documentation at Web Site
Yes
Details below
NoNo bug fixesNo

New features and changes introduced in this version are described here:

Model Assistant Tool

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:

These components are summarized in the next sections.

General Code Generation Goals

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.

Detailed Code Generation Goals

This component presents a centralized interface to the available code generation options. Options are grouped by category, and are applied across products.

Model Advisor

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.

Search and Modify

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:

Using the Model Assistant Tool

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)

Further Help and Demos

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.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS