Record the speed of encoder

Hi,
I need a help to record the position(m), velocity(m/s) and acceleration(m/s2) for the wheelchair. I used the 1000P/R omron encoder(3 outputs). Can anyone give the code or guide me.

Do you mean that you already have a program that can capture the position, velocity and acceleration and you just want to know how to save the data for future analyisis?

...R