robot moving with the values of the analog output velocity

I need to replace the speed of my robot by the speed I got from the analog output in a regular time interval!

You could use a timed interrupt with the speedrefresh command.