Disable save dialog in Simulink

4 ビュー (過去 30 日間)
MC
MC 2018 年 3 月 7 日
コメント済み: Jyotish Robin 2018 年 3 月 21 日
Hello! I'm wondering if it's possible to programmatically disable the Save dialog which popups when you close a Simulink model? I.e when you press the X or similar. I've tried using bdclose and close_system in CloseFcn callback and even in PreSaveFcn callback but neither seems to work as the dialog still appears.
Best Regards MC
  1 件のコメント
Jyotish Robin
Jyotish Robin 2018 年 3 月 21 日
Using the below 2 commands:
>> save_system(modelName)
>> close_system(modelName)
in the 'close_fcn' callback can hopefully help you.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeModel, Block, and Port Callbacks についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by