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

조회 수: 18 (최근 30일)
Farzam Malmir
Farzam Malmir 2018년 5월 20일
댓글: Farzam Malmir 2018년 5월 21일
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