Force stop the model

Hi,

​Sometimes we need to stop the model as a force. because we have used incorrect code. For example, we have written a “while” function but we forgot to add " i i + 1" for steps.
Maybe a force stop button helps us to stop the model.

Thanks
Naser

Have you try selecting Halt from the menu?

But a simple button near buttons/ interface maybe useful. Sometimes model crash.
Or we can add Crtl+C buttons from keyboard to stop computing.

@nasermars Just to check, does Halt from the tools menu work for you?

yes, it work.

I always forget that’s tucked away in the Tools menu. It’s definitely a lifesaver when I accidentally trigger an infinite loop and don’t want to lose my unsaved code by force-closing the whole app.

1 Like