I am reading data in real time over an RS485 link which I then have to parse out, scale to the size of the display area, and paint the display. One block of data read in corresponds to one line painted on the display. It takes approximately 6 milliseconds to paint 500 pixels across the display area. This is entirely too long for my application. Is there faster way to write to the display. For instance, like writing directly to the display memory. How would I do this in CVI? Any ideas out there?
Thanks for any help!
//This is way too slow!
CanvasStartBatchDraw (* pnl, PANEL_CANVAS);
for ( i= 0; i < displayWidth; i++)
{
SetCtrlAttribute (* pnl, PANEL_CANVAS, ATTR_PEN_COLOR, color[i]);
CanvasDrawPoint (* pnl, PANEL_CANVAS, ptPt1[i]);
}
CanvasEndBatchDraw (* pnl, PANEL_CANVAS);