| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
This table summarizes what's new in V5.1.1 (R13SP1+):
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems | Related Documentation at Web Site |
|---|---|---|---|
| Yes Details below | Yes—Details labeled as Compatibility Considerations, below. See also Summary. | Fixed bugs | No |
New features and changes introduced in this version are
New -dr Command Line Switch in TLC Detects Cyclic Record Creation
Error Resulting from Inaccessible Signal Reporting No Longer Reported
The -dr command line option enables the Target Language Compiler to detect at run time when cyclic records are created and to produce a diagnostic message.
Cyclic records are problematic because they cause memory leaks in TLC. A cyclic record is one which ends up pointing to itself. They can be constructed only manually, as in the following example:
%createrecord x { } %% create an empty record x
%createrecord y { } %% create an empty record y
%addtorecord x field y %% add a field to x which points to y
%addtorecord y field x %% add a field to y which points to x
At this point, a cyclic record exists — x.field.field == x.
As this feature significantly slows Target Language Compiler performance, it is off by default.
In previous releases, Simulink and the Real-Time Workshop software reported an error whenever a Floating Scope or a user-written S-function tried to access an inaccessible signal during simulation or code generation. In this release, Simulink displays only a warning if you use the sim command to start the simulation. The Real-Time Workshop software generates neither a warning nor an error message.
![]() | Version 5.2 (R13SP2) Real-Time Workshop Software | Version 5.1 (R13SP1) Real-Time Workshop Software | ![]() |

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 |