Mar-08-2017, 08:01 PM
I am having a problem where I am streaming binary data from a micro to PC and I want to graph the data.
The data is binary data coming in around 100 kBits/sec. So I setup a thread in python to receive the data and I save the last 2 seconds of data to an array. The issue I have ran into is that when I plot the data the receiving thread halts and appears to cause the Pyserial receive buffer to over flow. That is the threads are not running concurrently.
I figure I am not the first person to use Python and stream large data real time into python, does anyone have an example of how to do such a thing?
Thanks
Trampas
The data is binary data coming in around 100 kBits/sec. So I setup a thread in python to receive the data and I save the last 2 seconds of data to an array. The issue I have ran into is that when I plot the data the receiving thread halts and appears to cause the Pyserial receive buffer to over flow. That is the threads are not running concurrently.
I figure I am not the first person to use Python and stream large data real time into python, does anyone have an example of how to do such a thing?
Thanks
Trampas