AnsweredAssumed Answered

InterpolatedValuesByCount on AFData

Question asked by Dries.Verhees on May 24, 2016
Latest reply on May 25, 2016 by Marcos Vainer Loeff

Hi all,


It looks like there is no InterpolatedValuesByCount available on the AFData object (see AFData Methods), while it is available on the PIPoint object (see PIPoint Methods).


What is the best way to get interpolated values by count?

Currently, I am calculating the time step and using the InterpolatedValues method:


      stepSize = TimeSpan.FromMilliseconds((endTime - startTime).TotalMilliseconds/(numberOfValues - 1));


Is this the most efficient method?


I noticed that there is also a PlotValues available, can it be used for my purpose?
I would like to make sure that I receive exactly 500 points if I ask for 500 points.