why state flow getting corrupted?

8 visualizzazioni (ultimi 30 giorni)
Ajay krishna Vasanthakumar
Risposto: Akanksha il 29 Ago 2025 alle 8:22
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

Risposte (1)

Akanksha
Akanksha il 29 Ago 2025 alle 8:22
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!

Categorie

Scopri di più su Decision Logic in Help Center e File Exchange

Prodotti


Release

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by