Version 6.2 (R14SP2) Real-Time Workshop® Software

This table summarizes what's new in V6.2 (R14SP2):

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

New features and changes introduced in this version are

Model Advisor Enhancements

The Model Advisor analyzes Simulink® models for optimal use of Simulink for simulation and code generation. You can customize the analysis and resulting report by selecting the checks that you want the Model Advisor to perform. The Real-Time Workshop® V6.2 (R14SP2) product enhances the Model Advisor by adding several new checks and grouping checks based on their application for simulation or code generation.

The Model Advisor dialog box now appears as follows:

For more information on the Model Advisor, see Consulting the Model Advisor in the Simulink documentation.

Rate Transition Block Enhancements

The Rate Transition block has been enhanced to support:

Data Store Read Block Enhancement

The code that the Real-Time Workshop build process generates for the Data Store Read block has been optimized. Prior to this V6.2 (R14SP2), the code generated for this block would copy the value of the block to a temporary variable. In V6.2 (R14SP2), the Real-Time Workshop build process eliminates the use of the temporary variable, if possible.

Consider the following model:

A section of the code generated for this model, using an earlier version of the Real-Time Workshop product would appear as follows:

  /* local block i/o variables */
     
  real_T rtb_DataStoreRead;

  /* DataStoreWrite: '/Data Store Write' incorporates:
   *   Inport: '/In1'
   */
  mdsm_opt_DWork.A = mdsm_opt_U.In1;

  /* DataStoreRead: '/Data Store Read' */
  rtb_DataStoreRead = mdsm_opt_DWork.A;

  /* Outport: '/Out1' */
  mdsm_opt_Y.Out1 = rtb_DataStoreRead;

Note the value of mdsm_opt_DWork.A is stored in the temporary variable rtb_DataStoreRead.

The following code fragment shows the comparable section of code generated by this release of the Real-Time Workshop product. The temporary variable rtb_DataStoreRead is no longer used.

 /* DataStoreWrite: '/Data Store Write' incorporates:
   *  Inport: '/In1'
   */
  mdsm_opt_DWork.A = mdsm_opt_U.In1;

  /* Outport: '/Out1' incorporates:
   *  DataStoreRead: '/Data Store Read'
   */
  mdsm_opt_Y.Out1 = mdsm_opt_DWork.A;

C++ Target Language Support

In V6.2 (R14SP2), the Real-Time Workshop product introduces support for generating C++ code. The primary use for this feature is to facilitate integration of generated code with legacy or custom user code written in C++.

For information on using this feature, see the following topics in the Real-Time Workshop documentation:

For a demo, enter sfcndemo_cppcount in the MATLAB® Command Window. For a Stateflow® example, enter sf_cpp.

Limitations

Support for Open Watcom 1.3 Compiler

V6.2 (R14SP2) provides Beta support for the Open Watcom 1.3 compiler. The compiler has not yet been fully evaluated for compatibility with MathWorks products. However, the support files necessary for you to use the compiler with MATLAB and the MATLAB® Compiler™ are available. To configure the compiler, use the mex -setup function. Full support will be available in a future release.

New Configuration Option for Optimizing Floating-Point to Integer Data Type Conversions

A new option, Remove code from floating-point to integer conversions that wraps out-of-range values, has been added to the Optimization pane of the Configuration Parameters dialog box that you can use to increase the efficiency of generated code that represents floating-point to integer or fixed-point data type conversions. The option removes code that ensures that execution of the generated code produces the same results as simulation when out-of-range conversions occur. This reduces the size and increases the speed of the generated code at the cost of potentially producing results that do not match simulation in the case of out-of-range values.

Consider using this option if code efficiency is critical to your application and the following conditions are true for at least one block in the model.

For more information, see Optimizing Code Resulting from Floating-Point to Integer Conversions in the Real-Time Workshop documentation.

Task Priority Block Parameters Renamed for Consistency

The Effective priorities parameter for the Async Interrupt block and Task priority parameter for the Task Sync block are renamed Simulink task priority. In both cases, the Rate Transition block uses the parameter to generate the appropriate high-to-low or low-to-high priority transition code.

New RSim Target Configuration Option

A new option, Force storage classes to AUTO, has been added to the Real-Time Workshop>RSim Target pane of the Configuration Parameters dialog box. The option is on by default and forces all storage classes to Auto. If your application requires the use of other storage classes, such a ExportedGlobal or ImportedExtern, turn this option off. The new option appears in the Storage Classes section as shown in the next figure.

For more information, see Configuring and Building a Model for Rapid Simulation.

LibManageAsyncCounter Function Added to asynclib.tlc Library

The function LibManageAsyncCounter has been added to the asynclib.tlc TLC library. This function determines whether an asynchronous task needs a counter and manages its own timer.

Enhanced Documentation on Integrating Legacy and Custom Code with Generated Code

Documentation on integrating legacy and custom code with generated code has been enhanced.

Documentation Enhancements

The following areas of the Real-Time Workshop documentation have been corrected or enhanced:

  


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