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

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.

Réponses (1)

Yu Jiang
Yu Jiang le 28 Août 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

4 commentaires

Thank you for the response and I agree that this work around might be appropriate for the ramp signal. However, I am looking for a way to reset an arbitrary signal to it's initial condition when the subsystem switches between states.
Thank you so much Yu Jiang. I've been searching this issue for 2 days. I can solve with your answer
Thanks, this also solve my question in https://www.mathworks.com/matlabcentral/answers/1439119-output-the-enable-signal-from-enabled-subsystems?s_tid=srchtitle
666

Connectez-vous pour commenter.

Catégories

En savoir plus sur Schedule Model Components dans Centre d'aide et File Exchange

Produits

Question posée :

le 27 Août 2014

Commenté :

帅
le 21 Mar 2023

Community Treasure Hunt

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

Start Hunting!

Translated by