I have a project about DAQ which has 36 channels,I want to monitor the 36
channels simultaneously,I show monitor-curves in two charts because the
customer would not watch too many forms.I add an offset between two curves.
namely,
for(i=0;i<512;i++)
{
Offset=0;
for(j=0;j {
Offset=Offset+2 ;
/*buf[j] is the array read from the jth channel's buffer
which has been dealed with QScale1D (buf[j], 512, buf[j], &scale);
*/
Merge[j+i*traceNum]=buf[j][i]+Offset;
}
}
PlotStripChart (panelID, controlID, Merge, traceNum*512, 0, 0,
VAL_DOUBLE);
I set 512 points per screen.when the traceNum equals 18,the respondence of mouse
become too slow,even invalid.At first I think using two threads can solve this problem,
but when I put plotstripchart in the main thread(maintimer=2s),and DAQ in the other tread which
is created by NewAsyncTimer(NewAsyncTimer=2s),the same phenomenon appeared.Is it because
traceNum*512 too big?
how can solve this problem,please give me some advice.