AFValues.InterpolatedValuesAtTimes Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: AFValuesReturns an AFValues collection with the interpolated values at the specified times.
Exceptions
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.
| This method, property, or class is not available in the legacy .NET 3.5 version of the SDK. |