Summation, Avg, Total, etc of AFAttribute (PIPoint)

Discussion created by on Dec 11, 2009
Latest reply on Dec 14, 2009 by spilon



Like some, I am just getting into PI-AF.  I have spent the last few days connecting to the AF through the AF SDK, searching for AFAttributes based on what version of the AFElement I am querying on, and getting the PI Point value (GetValue) for a given timestamp.  I am now trying to get a total, avg, or delta for a tag (i.e. AF Attribute) over a time range.  Is there a way of getting it directly from AF or do I need to get the tag from AF and then use the PI-SDK to get the total or average?  If I can do it through the PI AF, what are my steps to accomplish this task?