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

10 次查看(过去 30 天)
Hi,
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?

采纳的回答

Chris Portal
Chris Portal 2018-5-21
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:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by