フィルターのクリア

How do I convert pulses to RPM in simulink 2017a

14 ビュー (過去 30 日間)
quentin hay
quentin hay 2020 年 11 月 15 日
回答済み: heng zhang 2020 年 12 月 31 日
Hi,
I would like to know how to measure the time between 2 pulses occuring so I can calculate the RPM.
Ideally I want to calculate the time from 10 pulses ago and divide it that way to get a better accuracy. Happy to lose some signal accuracy/response for a smoother signal.
Any help is appreciated.
Thanks
Quent

回答 (4 件)

Mathieu NOE
Mathieu NOE 2020 年 12 月 30 日
hello
this is my version, converted to R2017a
hope it helps
it runs at fixed step = 1/Fs with Fs = 1e5

Mathieu NOE
Mathieu NOE 2020 年 11 月 16 日
hello
you basically need a counter that will be reset at each trigger (pulse) signal
the counter max value will give you (according to the sampling rate) the period, so you can easily convert that to frequency or RPM
to smooth it out, you can then apply a low pass filter (that will give you the same result as averaging over x events)
  4 件のコメント
quentin hay
quentin hay 2020 年 12 月 30 日
quentin hay
quentin hay 2020 年 12 月 30 日

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


heng zhang
heng zhang 2020 年 12 月 31 日
Dear Mathieu NOE,Thanks very much for your help.

heng zhang
heng zhang 2020 年 12 月 31 日
Dear quentin hay ,Thanks very much for your help.

カテゴリ

Help Center および File ExchangePulse and Transition Metrics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by