Jump to content
Software FX Community

Problem with ClearData on RealTime chart


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...