MATLAB: How to trigger repetitive events in appDesigner? I’d like to control with a “start, pause, stop” state button, but any loop I start seems to need to finish before appDesigner re-looks at the state of the buttons.

appdesigner

I'd like to control the triggering of multiple function calls with a "start, pause, stop" state button, but any loop I start seems to need to finish, before appDesigner re-looks at the state of the buttons. Is there a different kind of function I need to be writing? Do I need to somehow initiate multiple threads?

Best Answer

Geoff Hayes had a helpful answer in "How to interrupt a While loop in appDesigner by pushing a button. I added a pause (0.001) in the loop and it now functions correctly - Thanks Geoff!