Start Stop timer using counter in simulink

조회 수: 49 (최근 30일)
spoon
spoon 2012년 1월 10일
댓글: Rimsha Zulfiquar 2021년 3월 10일
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
Rimsha Zulfiquar
Rimsha Zulfiquar 2021년 3월 10일
i need single server queuing system block diagram can you help me.

댓글을 달려면 로그인하십시오.

답변 (4개)

C.J. Harris
C.J. Harris 2012년 1월 10일
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
Mohammed Masum Siraj Khan
Mohammed Masum Siraj Khan 2020년 6월 29일
Hi C.J. Harris, thank you for your solution, a brilliant idea. It helped me.

댓글을 달려면 로그인하십시오.


Ashwin
Ashwin 2014년 4월 30일
Hello C J Harris,
If you can elaborate the solution, may be a screenshot or .mdl file
Thanks

hazakom laksji
hazakom laksji 2017년 3월 2일
https://www.mathworks.com/matlabcentral/fileexchange/44534-simulink---timer-counter

Leopoldino Ximenes
Leopoldino Ximenes 2019년 5월 23일
Hello
i need this code. Can help me?

카테고리

Help CenterFile Exchange에서 Create Large-Scale Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by