How to read the data from the driver and send to python

I tried simple foc studio, I can send the serial cammands and it it working but the graph plof is not working. am I missing something? also I want to record this data and save in csv file. I need to know what part of your code can do this task.