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 个评论
Rimsha Zulfiquar
2021-3-10
i need single server queuing system block diagram can you help me.
回答(4 个)
C.J. Harris
2012-1-10
2 个投票
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
2020-6-29
Hi C.J. Harris, thank you for your solution, a brilliant idea. It helped me.
Ashwin
2014-4-30
0 个投票
Hello C J Harris,
If you can elaborate the solution, may be a screenshot or .mdl file
Thanks
hazakom laksji
2017-3-2
0 个投票
https://www.mathworks.com/matlabcentral/fileexchange/44534-simulink---timer-counter
Leopoldino Ximenes
2019-5-23
0 个投票
Hello
i need this code. Can help me?
类别
在 帮助中心 和 File 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!