Start Stop timer using counter in simulink

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 Kommentar

Rimsha Zulfiquar
Rimsha Zulfiquar am 10 Mär. 2021
i need single server queuing system block diagram can you help me.

Melden Sie sich an, um zu kommentieren.

Antworten (4)

C.J. Harris
C.J. Harris am 10 Jan. 2012

2 Stimmen

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 Kommentar

Hi C.J. Harris, thank you for your solution, a brilliant idea. It helped me.

Melden Sie sich an, um zu kommentieren.

Ashwin
Ashwin am 30 Apr. 2014

0 Stimmen

Hello C J Harris,
If you can elaborate the solution, may be a screenshot or .mdl file
Thanks
hazakom laksji
hazakom laksji am 2 Mär. 2017

0 Stimmen

https://www.mathworks.com/matlabcentral/fileexchange/44534-simulink---timer-counter
Leopoldino Ximenes
Leopoldino Ximenes am 23 Mai 2019

0 Stimmen

Hello
i need this code. Can help me?

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 10 Jan. 2012

Kommentiert:

am 10 Mär. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by