How do i pause simulink for a moment ?

조회 수: 1 (최근 30일)
Kelvin Oys
Kelvin Oys 2013년 1월 23일
댓글: Gerrit 2018년 8월 13일
I trying to create a continuous plotting Application Programming Interface (aka API)which keep collecting results from the stimulation produce by simulink. The problem is simulink only produce the result after it stop or pause, any idea of pausing it?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 23일
set_param('yourmodel','simulationcommand','pause')
see also, 'continue','stop','update',...
  댓글 수: 7
TAB
TAB 2013년 1월 29일
Simulink APIs works only under matlab environment. It is not possible to coontrol compiled model with these APIs. Also same is true for vice versa. Simulink APIs are not supported by matlab compiler. So they will not work with you standalone GUI.
For your reference: This relares thread and This tech doc
Gerrit
Gerrit 2018년 8월 13일
Please note that the link to "This tech doc" no longer works.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

TAB
TAB 2013년 1월 25일
Instead of puasing the simulation to collect data, use run time data access methods of simulink. Using these methods data can be collected when the simulation is running.
See

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by