Jump to content
Software FX Community

Re: Real-Time Chart of Non-Real time Data


User (Legacy)
 Share

Recommended Posts

Hi Frank, 

Thanks for the quick reply.

> 1) So is this a real-time time chart or not ? is the data being added

using

> COD_ADDPOINTS ?

1) No, this is not a real-time chart. My application

is animating prerecorded data in real-time. What I need to do

is display this data in a chart and somehow indicate

to the user where the current time is in the chart.

I have no problem setting up the charts and filling them with data:

pChartFX->OpenDataEx((CfxCod) (COD_VALUES),

m_pchtParameters->m_iNumSeries[iChartIndex]+1,

m_pchtParameters->m_iMaxNumValues[iChartIndex]);

// set-up data series

int iSeriesIndex=0;

for (vector<CChartDataSeries>::iterator

itchtdataSeries=m_chtdataCharts[iChartIndex].m_chtdataSeries.begin();

itchtdataSeries!=m_chtdataCharts[iChartIndex].m_chtdataSeries.end();

itchtdataSeries++,iSeriesIndex++)

{

for(int i=0;i<m_pchtParameters->m_iMaxNumValues[iChartIndex];i++)

{

pChartFX->Series->Item[iSeriesIndex]->Yvalue[i]=itchtdataSeries->m_pdData[i]

;

}

}

pChartFX->CloseData((CfxCod)(COD_VALUES|COD_SMOOTH));

The problem that I'm having is indicating on the chart where the current

time is.

> 2) Setting a constant line will cause the whole chart to redraw

2) Is there some other method I can use to indicate the time position on the

chart

without having the whole chart redrawn?

> 3) What do you mean by "the whole simulation grinds to a halt" ? does the

> computer freezes or it just takes time because it is redrawing the chart ?

> If the last, how many points are in this chart.

3) It is taking too long to redraw the chart. At this point I using about

1000 points

per series and two or three series.

I have tried using a limited window and scrolling, but this updates too slow

also.

I'm plotting all of the data to the chart and it does not change during

operation. All

I need to do is draw a line on the chart ,or indicate some how, where the

current time is.

Thanks,

Steve

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...