AnsweredAssumed Answered

How to get 15 minute average value of a tag in code

Question asked by anupam on Apr 29, 2016
Latest reply on Apr 30, 2016 by anupam

I am accessing my PI Server to get the snapshot value of my PI tag. But my requirement is to show 15 minutes average value of that tag. I have declared a tag ptavg of type PISDK.PIValue and used the code listed below to fetch the 15 minute average values:


ptavg =  pt.Data.Summary('*-1d','*',ArchiveSummariesTypeConstants.asAverage,CalculationBasisConstants.cbTimeWeighted,'15m')


Kindly help.