Can I use an enabled subsystem to reset a signal generator?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a signal generator (ramp) inside an enabled subsystem. I had hoped that I would be able to reset the signal generator when I disabled the subsystem. Unfortunately, this does not appear to work. I would like to be able to use the signal builder to build a signal and then use an enabled subsystem or some other technique to reset this signal when I trigger a particular event.
댓글 수: 0
답변 (1개)
Yu Jiang
2014년 8월 28일
Hi Fernando
The attached model might be a workaround. Notice that in the subsystem, I double-clicked the enable block and change the "States when enabling:" to "reset". If you would also like to reset the output, you can double-click the out block in the subsystem and change "output when disabled" to "reset".
- Yu
댓글 수: 4
Chen Wu
2021년 8월 26일
Thanks, this also solve my question in https://www.mathworks.com/matlabcentral/answers/1439119-output-the-enable-signal-from-enabled-subsystems?s_tid=srchtitle
참고 항목
카테고리
Help Center 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!