Version 5.1 (R2008a) Real-Time Workshop® Embedded Coder™ Software

This table summarizes what's new in Version 5.1 (R2008a):

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known ProblemsRelated Documentation at Web Site
Yes
Details below
NoBug Reports
Includes fixes

Printable Release Notes: PDF

Current product documentation

New features and changes introduced in this version are

New AUTOSAR Compliant Code Generation Capability and Demos

Real-Time Workshop® Embedded Coder™ V5.1 (R2008a) provides AUTOSAR-compliant code generation configurable by GUI, command line functions, or AUTOSAR-compliant XML files. For information, see Generating Code That Complies with AUTOSAR Standards in the Real-Time Workshop Embedded Coder User's Guide documentation.

Select the new system target file autosar.tlc to access the AUTOSAR Code Generation Options pane in the Configuration Parameters dialog box. You can then launch the Model Interface dialog to access all options for configuring AUTOSAR-compliant code generation and import/export to and from XML files.

New functions provide command-line access to all AUTOSAR options. For more information, see Configuring AUTOSAR Options Programmatically in the Real-Time Workshop Embedded Coder User's Guide documentation.

Also, two AUTOSAR demos are provided, rtwdemo_autosar_roundtrip_script and rtwdemo_autosar_legacy_script.

Bidirectional Traceability for Stateflow Charts and Embedded MATLAB Functions

In previous releases, the Real-Time Workshop Embedded Coder software provided bidirectional traceability for Simulink® blocks only. In R2008a, bidirectional traceability is added between generated code and Stateflow® chart objects and Embedded MATLAB™ scripts. For embedded real-time (ERT) based targets, you can choose to include traceability comments in the generated code. Using the enhanced traceability report, you can click hyperlinks to go from a line of code to its corresponding item in the model. You can also right-click an item in your model to find its corresponding line of code.

The following parameters are added or updated for bidirectional traceability:

Previous Parameter Location and NameNew Parameter Location and Name
Real-Time Workshop > General pane: Generate HTML reportReal-Time Workshop > Report pane: Create code generation report
Real-Time Workshop > General pane: Launch report automaticallyReal-Time Workshop > Report pane: Launch report automatically
Real-Time Workshop > General pane: Code-to-block highlightingReal-Time Workshop > Report pane: Code-to-model
Real-Time Workshop > General pane: Block-to-code highlightingReal-Time Workshop > Report pane: Model-to-code
N/AReal-Time Workshop > Report pane: Eliminated / virtual blocks
N/AReal-Time Workshop > Report pane: Traceable Simulink blocks
N/AReal-Time Workshop > Report pane: Traceable Stateflow objects
N/AReal-Time Workshop > Report pane: Traceable Embedded MATLAB functions
Real-Time Workshop > Comments pane: Simulink block commentsReal-Time Workshop > Comments pane: Simulink block / Stateflow comments

Also, the right-click Real-Time Workshop > Highlight Code menu option is now Real-Time Workshop > Navigate to Code.

For more information, see Traceability of Stateflow® Objects in Generated Code in the Stateflow and Stateflow® Coder™ documentation, Using Traceability in Embedded MATLAB™ Function Blocks in the Simulink documentation, and Creating and Using a Code Generation Report in the Real-Time Workshop Embedded Coder documentation.

Generated Code Enhancements

In R2008a, code generation is enhanced to

Function Prototype Control Enhancements

In R2008a, function prototype control:

For more information, see Controlling model_step Function Prototypes in the Real-Time Workshop Embedded Coder documentation.

Improved MISRA-C Compliance for Matrix Math Utilities and Lookup Block Utilities

This release improves the MISRA-C compliance of matrix math utilities and lookup block utilities that are used in generated code.

math.h Header File Inclusion Now Controllable Through Target Function Library Customization

In previous releases, code generated by the Real-Time Workshop Embedded Coder software automatically included the math.h header file, defining C standard math functions, regardless of the math requirements of the target environment. In this release, selecting or customizing a target function library (TFL) for your model controls which header files are included, and generated code does not automatically include math.h unless it is needed.

For more information about selecting TFLs, see Selecting and Viewing Target Function Libraries in the Real-Time Workshop® documentation. For more information about customizing TFLs, see Target Function Libraries in the Real-Time Workshop Embedded Coder documentation.

"What's This?" Context-Sensitive Help Available for Simulink® Configuration Parameters Dialog

R2008a introduces "What's This?" context-sensitive help for parameters that appear in the Simulink Configuration Parameters dialog. This feature provides quick access to a detailed description of the parameters, saving you the time it would take to find the information in the Help browser.

To use the "What's This?" help, do the following:

  1. Place your cursor over the label of a parameter.

  2. Right-click. A What's This? context menu appears.

    For example, the following figure shows the What's This? context menu appearing after a right-click on the Start time parameter in the Solver pane.

  3. Click What's This? A context-sensitive help window appears showing a description of the parameter.

New and Enhanced Demos

The following demos have been added:

Demo...Shows How You Can...
rtwdemo_autosar_legacy_scriptPrepare, implement, and verify an existing model for AUTOSAR by using the AUTOSAR target.
rtwdemo_autosar_roundtrip_scriptImport, modify, and export AUTOSAR software components.
rtwdemo_polyspaceUse PolySpace™ products to prove both the absence and presence of run-time errors for code generated by Real-Time Workshop® Embedded Coder software. It also shows the results of MISRA-C compliance for the generated code.

The following demo has been enhanced to illustrate code traceability improvements in R2008a:

  


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