Stateflow model fails on write 'data after write error'
Show older comments
I have a harness model which uses a Stateflow model. When running the harness, it fails with this error:
An error occurred while running the simulation and the simulation was terminated
Caused by:
The block 'maneuverLogicLibHarness/maneuverLogicLib/maneuverLogicChart' is writing to the data store 'maneuverLogicLibHarness/maneuverLogicLib/maneuverLogicChart' but the block(s) 'maneuverLogicLibHarness/maneuverLogicLib/maneuverLogicChart' have already written to a portion or the entire region of this memory at time 6.66. For performance reasons, occurrences of this diagnostic for this memory at other simulation time steps will be suppressed.
The error specifies a data store, but there is no data store involved in my model (at least no explicit data store, can be some internal data store in Stateflow chart). Why is this error showing up?
Accepted Answer
More Answers (0)
Categories
Find more on Diagnostics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!