The python code can now print data to a csv file and plot such data according to the preselected set of values established by print_selection.
The next step is the creation of a routine for starting and stopping the motor for capturing information.