Hi,
Could somebody help and advice how I estimate the velocity from the
position output of an incremental shaft encoder (two outputs, 90 deg.
shifted). I use Simulink and xPC target to control an actuator with DC
motor. The easiest way would be to take the difference between the
last two sampled positions divided by the sampling period. But I don't
know where I should get the sampling period from? Is there another way
which I could try to perform speed control?

Thanks Dan

Thanks Dan