How to stop and save data on arduino board

beacuse I need to save the results and the graph for analysis I am trying to measure the direction, velocity, and distance traveled.