How do I (in Simulink) have a counter that will count but only when the input is high? If the input signal goes low then the count should be reset.

26 ビュー (過去 30 日間)
Josh
Josh 2013 年 11 月 13 日
回答済み: The Matlab Spot 2013 年 11 月 14 日
I want to have a counter count to at least 250 seconds but only increment if the signal is high. If the input signal goes low I want the count to reset to zero. I am trying to do this in a Simulink model so that I can verify that an electric motor is not running above the continuous torque for longer than the time it is allowed to. It would be convenient if at the end of the entire simulation, the highest count that it got to was an output. Thanks, Josh

回答 (1 件)

The Matlab Spot
The Matlab Spot 2013 年 11 月 14 日
Use the attached timer logic

カテゴリ

Help Center および File ExchangeMotor Drives についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by