How to reset a signal to zero after certain intervals in simulink?
Mostra commenti meno recenti
Let me first describe my problem. I am having a signal which comprises acceleration signal(for 20s) followed by zero signal (for 10s) and again followed by acceleration signal(for 20s) and again followed by zero signal (for 10s) and this goes on. Now I am also simultaneously integrating the acceleration signal to get the velocity. Now the problem I am facing is that during the period of zero acceleration I get a non-zero constant value of velocity(as obtained from the last integration of non-zero acceleration) which I want to reset to zero for each periods of the zero acceleration signals. Is there any way of doing that? Please help me!!
Risposta accettata
Più risposte (1)
Rick Rosson
il 7 Giu 2014
0 voti
The integrator block provides an option to allow you to reset the state variable using an external trigger signal. Please review the doc:
1 Commento
rnayek
il 8 Giu 2014
Categorie
Scopri di più su Simulink in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
