Clear Filters
Clear Filters

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

2 views (last 30 days)
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.

Answers (1)

Yu Jiang
Yu Jiang on 28 Aug 2014
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
Chen Wu
Chen Wu on 26 Aug 2021
Thanks, this also solve my question in

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!