Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFValues.InterpolatedValuesAtTimes Method

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFValues.InterpolatedValuesAtTimes Method
This method returns calculated interpolated values at the specified times.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFValues InterpolatedValuesAtTimes(
	IList<AFTime> times
)
Public Function InterpolatedValuesAtTimes ( 
	times As IList(Of AFTime)
) As AFValues

Dim instance As AFValues
Dim times As IList(Of AFTime)
Dim returnValue As AFValues

returnValue = instance.InterpolatedValuesAtTimes(times)
public:
AFValues^ InterpolatedValuesAtTimes(
	IList<AFTime>^ times
)
member InterpolatedValuesAtTimes : 
        times : IList<AFTime> -> AFValues 

Parameters

times
Type: System.Collections.GenericIListAFTime
List of timestamps at which to calculate interpolated values.

Return Value

Type: AFValues
Returns an AFValues collection with the interpolated values at the specified times.

Exceptions

ExceptionCondition
ArgumentNullException The times is .
ArgumentException The times list must be in ascending (monotonic) order.
InvalidOperationException The Timestamp in AFValues collection must be in ascending (monotonic) order.

Remarks

This method is a client side calculation on the AFValues collection previously retrieved.

If the AFValues list count is 0 then the return is null.

If the input times list count is 0 then the return is null.

If a request time in times is before the first event's timestamp in the AFValues collection then NoData will be returned at that request time. If a request time in times is after the last event's timestamp in the AFValues collection then the last value in the collection will be returned at that request time.

The resulting interpolated values are not coerced/converted to the Attribute or PIPoint type precision, e.g. the resulting interpolated value could be a double while the Attribute or PIPoint type is an integer.

Note Notes to Callers
This method, property, or class is not available in the legacy .NET 3.5 version of the SDK.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in