Jump to content
Software FX Community

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


User (Legacy)

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

Archived

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

×
×
  • Create New...