Can I use an enabled subsystem to reset a signal generator?

2 ビュー (過去 30 日間)
Fernando
Fernando 2014 年 8 月 27 日
コメント済み: 2023 年 3 月 21 日
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.

回答 (1 件)

Yu Jiang
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
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
帅
2023 年 3 月 21 日
666

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by