AnsweredAssumed Answered

Issues with PI summaries result set.

Question asked by adhiman on Feb 24, 2016
Latest reply on Feb 25, 2016 by bshang

I'm trying to retrieve calculated sample values for a given time range. Last known time stamp on PI server is at 09:11.

Values returned from summaries method is equally spaced till 09:15 with the last known value shown for the period after 09:11 - 09:15.


            var afTimeRange = new AFTimeRange(new DateTime(2016, 02, 24, 9, 08, 0).ToUniversalTime(), new DateTime(2016, 02, 24, 9, 15, 0).ToUniversalTime());

            var afSummaryType = AFSummaryTypes.Minimum;

            var results = piPoint.Summaries(afTimeRange, new AFTimeSpan(milliseconds: 1000), afSummaryType, AFCalculationBasis.TimeWeighted, AFTimestampCalculation.MostRecentTime);

            var afValues = results[afSummaryType];


Is it a known behaviour ?. or is it possible to discard these extra values, if there are no actual values in PI for a time interval ? Thanks


Message was edited by: Anil Dhiman