Counter that starts on demand
Afficher commentaires plus anciens
Hi,
How can I build a counter that starts to count from 0 only after a specific start signal and stops after an other signal (by simulink) ?
Réponses (1)
Kaustubha Govind
le 16 Juin 2011
0 votes
Perhaps you could use the Counter Free-Running block inside an Enabled Subsystem and construct the enable signals based on your other two signals?
2 commentaires
cyberdyne
le 16 Juin 2011
Kaustubha Govind
le 16 Juin 2011
Are you saying that the subsystem starts executing at the beginning of simulation? No - it depends on whenever the enable signals goes active. So you can construct your enable signal such that the counter only executes for the duration that you want it to.
Catégories
En savoir plus sur Simulink Functions dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!