why state flow getting corrupted?

조회 수: 11 (최근 30일)
Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2020년 9월 4일
답변: Akanksha 2025년 8월 29일
when i save the model containing stateflow chart using save_system(gcs) in closeFcn,the chart is getting corrupted.
can someone explain why it is happening?
Thanks

답변 (1개)

Akanksha
Akanksha 2025년 8월 29일
Saving a Simulink model programmatically inside the closeFcn callback (like using save_system(gcs)) can cause issues because the model is already in the process of closing, and certain resources or states may not be available or stable at that moment. This can lead to model corruption, especially for complex blocks like Stateflow charts.
Here are the alternate solutions that you can try:
Below are some helpful official links where you can find more information:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Decision Logic에 대해 자세히 알아보기

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by