Error while saving Simulink model

34 次查看(过去 30 天)
This is the message error if I try to save a Simulink model (both by using the 'save' menu command and the command line 'save_system' ):
An error occurred during a callback while saving 'myFile.slx'. The previously saved version of this file (if any) has not been
changed.
Caused by:
Width and height must be > 0.
Please note that:
  • the error pesists even removing all the callbacks used by the model;
  • I already tried the command line: restoredefaultpath.
Regards
Vincenzo
  2 个评论
Fangjun Jiang
Fangjun Jiang 2022-5-1
"the error pesists even removing all the callbacks used by the model". Apparently the callbacks have not been completely removed, because "An error occurred during a callback".
Show as much info as possible related to the error.
Vincenzo Genovese
I have reported all info related to the error. However, in the last session Matlab closed abruptly and at my restart (using the autosave version of the model) the error disappeared.

请先登录,再进行评论。

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2022-5-1
run "dbstop if error" in MATLAB Command Window first and then save, see if you can get any lead where the error occured.
  1 个评论
Vincenzo Genovese
Ok . I have issued "dbstop if error" in command window. Now I am waiting for a new error occurrence.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by