フィルターのクリア

How to count number of pulses in a signal in Simulink

32 ビュー (過去 30 日間)
aakash dewangan
aakash dewangan 2021 年 9 月 14 日
コメント済み: aakash dewangan 2024 年 3 月 31 日
I have a signal (containing pulses) comming out of an encoder of a motor. I want to count the number of pulses present in the signal. The objective is to read the speed of the motor using encoder data. So, i am counting pulses, which i will be using to calculate the speed of motor. Please let me know How can I do this is simulink?
I used "Detect Increase" block, but it does't give me count for number of pulses. Since pulses are in large number so I can not count it manualy.

採用された回答

aakash dewangan
aakash dewangan 2023 年 10 月 25 日
編集済み: aakash dewangan 2024 年 3 月 31 日
Hi,
I used 'encoder' block from 'simulink support packege for arduino'. The block is available in the versions 2021b and above.
Thanks
  2 件のコメント
Jobin Geevarghese Thampi
Jobin Geevarghese Thampi 2024 年 3 月 12 日
But does that count the number of pulses?.
aakash dewangan
aakash dewangan 2024 年 3 月 31 日
Yes, It does, You need to judiciously choose the sampling time in that block.

サインインしてコメントする。

その他の回答 (1 件)

Paul
Paul 2021 年 9 月 14 日
Similar problem addressed in this link.

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by