how to read rpm value on encoder in simulink real rime? give me an example simulink block about it

20 ビュー (過去 30 日間)
mthe rpm value is not reading correctly, what should i do?

回答 (1 件)

Adit Kirtani
Adit Kirtani 2023 年 4 月 17 日
Hi Muhammad,
The working of the model you have shared is a bit vague, but in general if you wish to read RPM values from an encoder, I suggest creating your own MATLAB function to do so. While there is no encoder block for the Arduino boards, you can utilize a MATLAB function blocks and use interrupts to do so on your own. You can refer to this community post, where a staff member has provided detailed steps:
I hope this helps,
Adit Kirtani.

カテゴリ

Help Center および File ExchangeEmbedded Coder Supported Hardware についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by