simulink with arduino

Hi dears!
How can I measure the velocity of a DC motor encoder with simulink and arduino package?

alirezaae:
Hi dears!

Hello honey!

alirezaae:
How can I measure the velocity of a DC motor encoder with simulink and arduino package?

Usually people use a stationary IR receiver directed at a black and white piece of tape on the shaft. Why in the world are you using Simulink? Don't you think that's a bit overkill?