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 CenterFile Exchange에서 Model, 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