Why do the editor windows pop up when I pause my simulation that contains Stateflow and/or Embedded MATLAB blocks in Simulink 6.1 (R14SP1)?

1 view (last 30 days)
For example, in the rtwdemo_eml_aero_radar demo, when I open either of the sources, sometimes the Embedded MATLAB editor pops up. Once it pops up, the simulation will not start running again. I have to stop the simulation.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
We have verified that there is a bug in Simulink 6.1 (R14SP1) in the way that it handles being paused when Stateflow and/or Embedded MATLAB blocks are being executed. Pausing the Simulink diagram may cause the Embedded MATLAB Editor and/or Stateflow debugger to open and come into the foreground.
The Simulink state while paused in this mode is not defined. Tools that get block inputs and outputs at this time may see inconsistent values. This behavior is intermittent and is most likely to happen for Embedded MATLAB functions or Stateflow charts that execute for long periods of time.
To work around this issue, hitting continue or play from either the editor or debugger window should cause execution to resume.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products


Release

No release entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!