Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Using autoscale of x axis, how do I get my data to fill the graph plot area?

Hi there
 
I'm plotting a graph in real time, and data is getting to several different plots. When fresh data comes in for a particular plot, say plot 1, I call ChartY(xAmountToIncrement, YValue). At the same time, I update all other plots so they all remain at the same x value. I call ChartXY(xAxisTotalValue, plotYValue).
 
My problem is that I lose data as the graphs plot along the x axis - I have no idea why, but data from the past is lost.
 
My x axis is set to autoscale, which means that point 0 is soon lost as the x axis reflects milli-seconds. By the time the plot gets to 5 milliseconds through to 10 milliseconds, x axis data is only shown from say 7 milliseconds through to 9.5 milliseconds.

Why am I losing data and how can I keep it there? I know I can't use the chartlength property as this will only compress the data as point 0 remains fixed on the graph.
 
Thanks for any help!
0 Kudos
Message 1 of 2
(6,192 Views)

Hi

Can you post an example of the code you are using - perhaps with a file or pre-defined array to give the impression of data coming in?

I'm not sure I fully understand what you are saying when you say data is lost so it would be helpful to have something to run and observe the behaviour of?

Regards
Hannah
NIUK & Ireland

0 Kudos
Message 2 of 2
(6,163 Views)