For a better experience on dSPACE.com, enable JavaScript in your browser. Thank you!

The MathWorks RTW Bug 380630

Note

This page does not appear in the navigation of this website.
You will reach it via the link http://www.dspace.com/go/rtwbug380630 that is displayed
when starting RTI in a MATLAB version that is potentially affected by the problems described below.

Description

Problems due to incorrectly generated code may occur under the following conditions:

MATLAB Releases R2007a and R2007a+


Conditions:

  1. The model has a subsystem that is triggered by an RTI hardware or software interrupt block or an RTI Timer Interrupt block and,
  2. this subsystem contains a non-inlined S-function (C S-function, without associated TLC file)


Problem:
Incorrect code is generated by Real-Time Workshop. This code overwrites other code or data in memory. This may result in incorrect simulation results as well as in severe errors like real-time program crash.
 

MATLAB Releases R14SP2 - R2006b


Conditions:

  1. The model has a subsystem that is triggered by an RTI hardware or software interrupt block or by an RTI Timer Interrupt block and,
  2. this subsystem contains a non-inlined S-function (C S-function, without associated TLC file) and,
  3. this subsystem contains an inlined S-function (S-function with associated TLC file for code-generation) or a Simulink block that uses the TLC function LibGetTaskTime() or LibGetTaskTimeFromTID() in its TLC code (blocks that need absolute time information).


Problem:
Incorrect code is generated by Real-Time Workshop resulting in blocks reading wrong values for the absolute task time and hence computing incorrect results.

The following blocks are affected if used in interrupt-driven subsystems:

  • MotionDesk Blockset blocks:
  • MD_RTP_To_MotionDesk
  • MD_Net_To_MotionDesk
  • Standard Simulink blocks
  • Digital Clock
  • Sine Wave
  • From File
  • From Workspace

Workaround

Install the patches provided by The MathWorks.

Please note that the warning message in the MATLAB Command Window that referred you to this page will always be displayed. It will also appear after you installed the patches and even if you set the option Do not show this dialog again in the warning message window.

MATLAB Releases R2007a and R2007a+

http://www.mathworks.com/support/bugreports/details.html?rp=380630

 

MATLAB Releases R14SP2 - R2006b

http://www.mathworks.com/support/bugreports/details.html?rp=380630

http://www.mathworks.com/support/bugreports/details.html?rp=358425

Tags

Date 2017-03-20