Click or drag to resize
OSIsoft, LLC

PIPointInterpolatedValuesByCount Method

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: 2.10.6.195
Syntax
public AFValues InterpolatedValuesByCount(
	AFTimeRange timeRange,
	int numberOfValues,
	string filterExpression,
	bool includeFilteredValues
)

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: AFValues
Returns an AFValues collection with the interpolated values.
Exceptions
ExceptionCondition
PIExceptionError returned by the PI Data Archive.
ArgumentException The numberOfValues is less than or equal to zero.
Remarks

Note Notes to Callers
This method, property, or class is only available in the .NET 4 version of the SDK.

Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5
See Also
Enabling Operational Intelligence