how to read RPM using arduino block encoder in simulink?

I use this block to read the rpm on the DC motor encoder connected to the arduino mega2560, but the value is not detected even though I'm sure the arduino hardware setup on the simulink is correct? what are the problems and solutions?

Categories

Products

Release

R2022b

Asked:

on 12 Apr 2023

Edited:

on 21 Apr 2023

Community Treasure Hunt

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

Start Hunting!