Start Stop timer using counter in simulink

54 visualizzazioni (ultimi 30 giorni)
spoon
spoon il 10 Gen 2012
Commentato: Rimsha Zulfiquar il 10 Mar 2021
Hi
I am in need of a logic to design a start and stop timer when the subsystem is enabled. If it can be done with a counter, how? . . . any other method welcome. .
  1 Commento
Rimsha Zulfiquar
Rimsha Zulfiquar il 10 Mar 2021
i need single server queuing system block diagram can you help me.

Accedi per commentare.

Risposte (4)

C.J. Harris
C.J. Harris il 10 Gen 2012
Just put an integrator within your enabled sub-system. Feed the integrator with a constant. Your output will then only ramp up when the subsystem is enabled.
Change the value/sign of your constant to control how fast the counter counts up/down.
  1 Commento
Mohammed Masum Siraj Khan
Mohammed Masum Siraj Khan il 29 Giu 2020
Hi C.J. Harris, thank you for your solution, a brilliant idea. It helped me.

Accedi per commentare.


Ashwin
Ashwin il 30 Apr 2014
Hello C J Harris,
If you can elaborate the solution, may be a screenshot or .mdl file
Thanks

hazakom laksji
hazakom laksji il 2 Mar 2017
https://www.mathworks.com/matlabcentral/fileexchange/44534-simulink---timer-counter

Leopoldino Ximenes
Leopoldino Ximenes il 23 Mag 2019
Hello
i need this code. Can help me?

Categorie

Scopri di più su Modeling in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by