Hi Chrisger, If you don't have an X scrollbar, the last element in the history should always have the X value XScale.Range:Maximum. Then this formula should bring you the X value for the first element in the history buffer:
XScale.Range:Maximum - (HistoryLength * XScale.Multiplier) If you are using a scrollbar, then I can see no way of calculating the correct X values, since you cannot read the scrollbar's position. The best way to solve this problem is propably to track the number of data points while writing to the diagramm. Then you don't need any X scale information from the diagramm, you just use it's history buffer to store your data. Richard H. National Instruments