AnsweredAssumed Answered

How to configure PIPoint DR to return Hourly Average for 12 hours

Question asked by JFors on May 11, 2015
Latest reply on Jun 3, 2015 by pthivierge

I would like to be able to retrieve a typical Datalink query where I want the last 12 hours of hourly average values for a tag.  I've configured an AFAttribute to get the 1 hour Average and can see it within PIExplorer to be a good value.  From within code I've tried to call the GetValues method of the instanciated AFAttribute:

            if (MyTimeRange != null)

                    {

                        templist = tempAtt.GetValues(MyTimeRange, 0, null);

                    }

which fails with an exception:

              {"[-11111] Error with summary calculation time array"}

 

Would appreciate help on how to construct this query using the PIPoint DR or ?

 

Thanks John

Outcomes