Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

Version 4.3 (R14SP3) Real-Time Workshop Embedded Coder Software

This table summarizes what's new in Version 4.3 (R14SP3):

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known ProblemsRelated Documentation at Web Site
Yes
Details below
Yes—Details labeled as Compatibility Considerations, below. See also Summary.Bug Reports
Includes fixes
No

New features and changes introduced in this version are

Data Type Replacement

This release provides the ability to replace built-in data type names with user-defined replacement data type names in the generated code for ERT target models.

As in previous releases, you can register user-defined data types and specify their associated header files using mechanisms described in Managing Data Definitions and Declarations With the Data Dictionary of the Real-Time Workshop Embedded Coder documentation. User-defined data types can be automatically created as Simulink.AliasType objects in the base workspace.

This release augments the existing mechanisms for registering user-defined data types by adding:

Data type replacement is available for code generated using Real-Time Workshop Embedded Coder, whether from Simulink, Stateflow charts, or Embedded MATLAB blocks.

For details on specifying replacement data types for a Simulink model, see Replacing Built-In Data Type Names in Generated Code in the Real-Time Workshop Embedded Coder documentation. For limitations that apply, see Data Type Replacement Limitations in the Real-Time Workshop Embedded Coder documentation.

HeaderFile Property Now Optional as Part of GetSet Data Object

In previous releases, a Simulink.Signal or mpt.Signal object of custom storage class GetSet was required to specify its HeaderFile property. The specified header file was then added as an #include in the generated code.

This release makes it optional to specify the HeaderFile property on data objects of the GetSet custom storage class. This accommodates users who prefer to use a model's custom code options to include header files.

Data Object Wizard Enhancements

The Data Object Wizard has been enhanced with new search options for including or omitting the following types of data objects for searches:

Alias types
Block outputs
Data stores
Parameters
Root inputs
Root outputs
States

For details on these enhancements, see Data Object Wizard in the Simulink documentation.

Global Data Stores Can Be Initialized Using mpt.Signal Object's RTWInfo.InitialValue Property

Global data stores may be defined in the base workspace using mpt.Signal objects (as well as Simulink.Signal objects or any of the subclasses of Simulink.Signal). In Release 14SP3, you can use the RTWInfo.InitialValue property of the mpt.Signal object to initialize a global data store.

If you set the RTWInfo.InitialValue property of the mpt.Signal object to a nonempty value, the value of that property becomes the initial condition of the global data store. If the InitialValue property of the object is empty ([]), the initial value of the global data store remains 0 (for example, false for Boolean data).

ERT Automatic Configuration Changes

If you generate code for ERT-based models that use the automatic model configuration feature, you should be aware of the following auto-configuration related changes in this release. If you supply your own script for ERT auto-configuration, you should consider modifying your code to take advantage of these changes.

Compatibility Considerations

If you supply your own auto-configuration script in place of the default version of ert_config_opt, your auto-configuration code will continue to be invoked and execute at the 'entry' hook. However, to additionally run your code at target selection time, you must modify your script to support the variable input arguments in the manner shown in ert_config_opt.m.

Documentation Enhancements

The following areas of the Real-Time Workshop Embedded Coder documentation have been corrected or improved:

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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