Write motion data to csv file
graph data