Start Stop timer using counter in simulink

11 ビュー (過去 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 Center および File ExchangeCreate 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