Click or drag to resize
OSIsoft, LLC

AFSampleType Enumeration

Defines the evaluation of an expression over a time range.

Namespace:  OSIsoft.AF.Data
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public enum AFSampleType
  Member nameValueDescription
ExpressionRecordedValues0 Sampling / evaluation is done based on the archive events of all attributes used in the expression. The expression is evaluated at each of the timestamps of these retrieved events. This sampling algorithm is sometimes referred to as natural or event-based. If there are no archive events in the expression (i.e. hour('*')>3), sampling / evaluation at start time only occurs.
Interval1 Sampling / evaluation is done based on a passed expression interval. This is sometimes referred to as evenly-spaced evaluation. This option is only supported for PI Points on PI Data Archive version 3.4 and above.

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

Version Information


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