I'm trying to read serial data streamed to my PC in Python continuously, while another part of the code takes a window of this data and performs calculations simultaneously.
The serial data needs to be saved without interruption, so that it represents a real-time waveform; while also being able to be accessed by the section of the program that performs the calculations.
I've been using pySerial with success and can batch-process the data once it is read and saved, but I need a method of saving the serial data in a non-blocking way for real-time calculation.
Apologies if I've repeated myself , I just want to be clear.