Jump to content
Software FX Community

Problem with ClearData on RealTime chart


User (Legacy)

Recommended Posts

Hello,

I'm having a problem trying to clear data from a RealTime style chart.

If the chart has some data points and I do a m_pChartFX->ClearData(), then

on the next data point entry ( which would now be the first data point), I

get a COM error 0x80004005 (Unspecified Error).

I got the same error to occur in your sample code by changing the method

OnAcquireData in the CCfxRealTime class from:

if (IsDlgButtonChecked(IDC_ACQUIREDATA))

SetTimer(1,100,NULL); // A 10th of a second

else

KillTimer(1);

to

if (IsDlgButtonChecked(IDC_ACQUIREDATA))

SetTimer(1,100,NULL); // A 10th of a second

else

{

KillTimer(1);

m_pChartFX1->ClearData(CD_VALUES);

m_pChartFX2->ClearData(CD_VALUES);

}

Now if the Data Acquistion checkbox is selected a second time to start the

data again, the COM error occurs.

Is there any special things I need to do to clear a realtime chart?

BTW: I'm using the ChartFX Active X control version 5.0.14.4

Thanks,

Chris

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...