PIPoint.InterpolatedValuesByCount Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method returns the specified number of interpolated values evenly spaced throughout the specified timeRange.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFValues InterpolatedValuesByCount( AFTimeRange timeRange, int numberOfValues, string filterExpression, bool includeFilteredValues )
Public Function InterpolatedValuesByCount ( timeRange As AFTimeRange, numberOfValues As Integer, filterExpression As String, includeFilteredValues As Boolean ) As AFValues Dim instance As PIPoint Dim timeRange As AFTimeRange Dim numberOfValues As Integer Dim filterExpression As String Dim includeFilteredValues As Boolean Dim returnValue As AFValues returnValue = instance.InterpolatedValuesByCount(timeRange, numberOfValues, filterExpression, includeFilteredValues)
public: AFValues^ InterpolatedValuesByCount( AFTimeRange timeRange, int numberOfValues, String^ filterExpression, bool includeFilteredValues )
member InterpolatedValuesByCount : timeRange : AFTimeRange * numberOfValues : int * filterExpression : string * includeFilteredValues : bool -> AFValues
Parameters
- timeRange
- Type: OSIsoft.AF.TimeAFTimeRange
The start and end time covered by the request. - numberOfValues
- Type: SystemInt32
The number of interpolated values to return even spaced throughout the timeRange. - filterExpression
- Type: SystemString
A filter expression that follows the performance equation syntax. - includeFilteredValues
- Type: SystemBoolean
Specify to indicate that values which fail the filter criteria are present in the returned data at the times where they occurred with a value set to a "Filtered" enumeration value with bad status. Repeated consecutive failures are omitted.
Return Value
Type: AFValuesReturns an AFValues collection with the interpolated values.
Exceptions
| Exception | Condition |
|---|---|
| PIException | Error returned by the PI Data Archive. |
| ArgumentException | The numberOfValues is less than or equal to zero. |
Remarks
| This method, property, or class is not available in the legacy .NET 3.5 version of the SDK. |