Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Cw++ for Visual c++ 6.0 Graph could not plot more than 300 Points

I'd like to plot a XY - Graph
pMessungGUI->m_xwerte[i];
and
pMessungGUI->m_ywerte[i];
are the sources of my data.
the data come from a rs232 and after each datapacket I do this pice of code. the First 300 Points works well but after 300 Points the CNiGraph doesn't plot it.



CNiReal64Matrix dataxy(2,pMessungGUI->m_wertepos);
for (i=0;im_wertepos;i++)
{
dataxy(1,i)=pMessungGUI->m_xwerte[i];
dataxy(0,i)=pMessungGUI->m_ywerte[i];
}
pMessungGUI->m_wertepos++;
pMessungGUI->m_graph_mess.ClearData();
pMessungGUI->m_graph_mess.ChartXY(dataxy);
0 Kudos
Message 1 of 2
(2,973 Views)
What's the the value of the CNiGraph::ChartLength property? It could be that the ChartLength property is set to 300. Also, what is the range of your x axis? If the ChartLength property is set to 0 and your x axis range is 1 - 300, the graph will only store 300 points. For more information, see the documentation for CNiGraph::ChartLength in the Measurement Studio reference.

- Elton
Message 2 of 2
(2,973 Views)