PDA

View Full Version : QWT plot is running very slow



desperado_43
24th July 2012, 15:15
hi ,
I have apps to graph ECG signal on mini 2440. Singals are realtime . First time , signal is very good until end of the qwtplot , then next signals is getting slower . After a few minutes , Apps is not responding.
Is there any body to help me
Thanks...

sonulohani
25th July 2012, 07:39
use setRawSamples() instead. May be it will work fine.

desperado_43
25th July 2012, 09:43
Ok that sound interesting.
What is the usage of setRawSamples ??

sonulohani
25th July 2012, 12:47
void QwtPlotCurve::setRawSamples ( const double * xData,
const double * yData,
int size
)

Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve.

setRawSamples is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying QwtCPointerData class.

Parameters:
xData pointer to x data
yData pointer to y data
size size of x and y