Hi,
Im receiving data through QSerialPort and as soon as the readyRead() signal is emitted I add data to some graphs. Im also using a QTimer to replot every 50ms and a QElapsedTimer to generate the time axis of the plot.
The problem is that sometimes the GUI seems to block the IO (when performing more "heavy" tasks like resizing or moving the mainwindow? im not sure what's the cause), so this is what I get:
http://s29.postimg.org/gvfi7og0n/qcustomplot_qserialport.png
As you can see, on the first malformed part of the wave, since the serial data is buffered, when the GUI thread is "available again" it will timestamp all data with the same value.
So, how should I timestamp incoming data? Any suggestions?
Thanks