Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Scatter Plot XYAppend cannot append more than 1000 points

Hello All,

I'm running my application under VB.NET with Windows 2000 and i'm currently using the ScatterGraph for Measurement Studio 7.0 to plot at run-time, the data collect from my instrument.

The problem:

In my application, I collect about 5000 points and generate a graph from it.
If I create 2 array (ChartArrayX and ChartArrayY) and plot them using the... XYGraph.Plots(WavePlotNumber).PlotXY(ChartArrayX, ChartArrayY), the graph shows up and it's find.

but if I try to collect them at run-time using... XYGraph.Plots(WavePlotNumber).PlotXYAppend(ValueX, ValueY), the graph display all the points, but after reaching the point 1000, it will continue recording the points to the graph, but everytime a point get recorded, one of the first points disappear, so at the end, I'm left with 1000 points of data...

Anybody heard about this problem before, is there a work around ???

Thanks for the Help,

- Seb
0 Kudos
Message 1 of 3
(3,787 Views)
You can control this via the ScatterPlot.HistoryCapacity. The behavior that you're describing is documented in the reference for the HistoryCapacity property:

"HistoryCount is the number of points that are actually in the history.

HistoryCapacity is not considered when plotting data. HistoryCapacity is only used when appending data to the plot.

When appending data, only data points stored in the history are displayed. If the sum of HistoryCount and the length of the appended data exceeds HistoryCapacity, only the most recent HistoryCapacity number of points is stored in the history."


Changing the ScatterPlot.HistoryCapacity value to 5000 should fix your problem.

- Elton
Message 2 of 3
(3,781 Views)
Perfect... Thank you.

You are right, the default value is 1000.

- Seb
0 Kudos
Message 3 of 3
(3,775 Views)