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

혁신을 추진하세요. 항상 기술 개발의 동향을 주시해야 합니다.

저희 전문 지식 서비스에 가입하세요. dSPACE의 성공적인 프로젝트 사례를 확인해 보세요. 시뮬레이션 및 검증에 대한 최신 정보를 받아보세요. 지금 바로 dSPACE 다이렉트(뉴스레터)를 구독하세요.

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.