Make Timer in Simulink
27 ビュー (過去 30 日間)
古いコメントを表示
Hello. I have 1 or 0 Signal coming as a input from my Ultrasonic Sensor. I want to make a Timer in simulink so that, if my input is 1 continuous for 5 seconds ,it gives me 1 at end, if not the timer starts again ,when 1 comes from the Sensor. I have Speed of Car and my distance. I wanted to integrate the distance to get time. Thankyou so much.
2 件のコメント
Sathvik
2023 年 6 月 28 日
You can use Timer APIs to access timers programatically. Here's a link to the documentation.
採用された回答
Fangjun Jiang
2023 年 6 月 28 日
It might be easier to implement it through Simulinnk block diagram, similar to this one.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!