필터 지우기
필터 지우기

Simulink Stop Simulation... find out which one stops the simulation

조회 수: 6 (최근 30일)
Norbert Thek
Norbert Thek 2018년 4월 11일
답변: TAB 2018년 4월 27일
Hello
We have a Simulink model which contains several Stop Simulation blocks. The problem for me is to find out which one actually stopped the simulation.
The problem is I also it's running automatically so some logging into the console instead of popup messages or something similar.
Also, it would be nice to do this without changing the model itself (replacing the stop blocks) because I receive them from external and this would be quite some work always to replace the blocks.

답변 (1개)

TAB
TAB 2018년 4월 27일
You can log the Input signals of the Stop Simulation block to base workspace. After simulation is stopped, analyzed the logged variables. Signal which changed to true is responsible for stopping simulation.

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by