AnsweredAssumed Answered

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

Question asked by ArseneCormier on Mar 28, 2017
Latest reply on Mar 29, 2017 by tramachandran

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.