How to pause/stop a Simulink model directly from App designer

13 views (last 30 days)
I have already designed an application to initialize and run a Simulink model directly through App designer. I need to define a pause or stop button in order to pause or stop the model while running. Does anyone know what command I can use for this purpose?

Accepted Answer

Chris Portal
Chris Portal on 21 May 2018
You can do this by using the set_param and get_param functions to configure the SimulationCommand setting for your model. This doc page describes how to do this:

More Answers (0)


Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by