Stop Simulink simulation base don a variable value
조회 수: 17 (최근 30일)
이전 댓글 표시
Hello:
I want ot know how to stop a simulink simulation automatically when one of the variables reaches a negative value. I will run it through a .m file
Thank you in advance
댓글 수: 0
채택된 답변
Arnaud Miege
2011년 6월 20일
Or use a Stop Simulation block. You will also need to construct the logic to create a boolean input signal to the block.
HTH,
Arnaud
댓글 수: 0
추가 답변 (2개)
Fangjun Jiang
2011년 6월 20일
Add an "Assertion" block into your Simulink model. The block is in the library Simulink>Model Verification. It has the option to stop simulation when assertation fails. You need to construct a simple logic to compare your signal to zero.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!