3 Replies Latest reply on Mar 29, 2017 2:25 PM by tramachandran

    PI Point - Time Weighted Averages using Summaries for multiple date ranges in one call

    ArseneCormier

      Anyone knows if you can call PI one time and retrieve the Time Weighted Averaging value for multiple date ranges in one call .. for one PI Point ?

       

      I am currently doing multiple calls (loop) using .Summary

       

      Dim newTimeRange As AFTimeRange = New AFTimeRange(vtStartTime, vtEndTime)

      Dim currStatusValues As IDictionary(Of OSIsoft.AF.Data.AFSummaryTypes, OSIsoft.AF.Asset.AFValue)

      currStatusValues = tmpPIPoint.Summary(newTimeRange, Data.AFSummaryTypes.Average, Data.AFCalculationBasis.TimeWeighted, Data.AFTimestampCalculation.Auto)

       

      Any help would be greatly appreciated.