4 Replies Latest reply on May 9, 2011 8:07 AM by AlistairFrith

    GetTraceValue() on an AF Element-relative display

    AlistairFrith

      I have a bit of a problem with the VBA behind an element relative display.

       

      It seems that when trending an AF attribute (with a PI tag data reference), hovering over the trace only give the data reference details. If the trace is a direct PI Tag instead of an AF attribute, we also get stats like min, max (with times) and average. the customer would like this info in a table below the trend.

       

      I have a table which I populate whenever a trace is added/removed  and it uses GetTraceValue() to find the smallest and largest value for each trace, but the timestamp comes back with 00:00:00. Actually, it does not get written to at all. Likewise with the status.

       

      Any ideas?

       

      ---- Alistair.