Why do I get the error: “Failed to evaluate mask initialization commands: Cannot change the model while simulation is running” while running my simulation in Fast Restart?

I upgraded my Simulink to version R2022a and when I try to run my simulation in Fast Restart, I get the following error:
Failed to evaluate mask initialization commandsCaused by: Cannot change the model while simulation is running

 채택된 답변

This error could potentially be caused due to the introduction of a new simulation status “Restarting” (22a Release Note) that improves Fast Restart workflows. Due to this change, the SimulationStatus configuration parameter value during the initialization of the Fast Restart simulation returns “restarting” in R2022a as opposed to “compiled” in previous versions. Models or scripts (for eg. Mask Initialization scripts) that conditionalize behavior based on the value of SimulationStatus might require to be updated to check against the new simulation status following this change.
 

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by