Disable save dialog in Simulink

3 Ansichten (letzte 30 Tage)
MC
MC am 7 Mär. 2018
Kommentiert: Jyotish Robin am 21 Mär. 2018
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 Kommentar
Jyotish Robin
Jyotish Robin am 21 Mär. 2018
Using the below 2 commands:
>> save_system(modelName)
>> close_system(modelName)
in the 'close_fcn' callback can hopefully help you.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by