What is the relationship and/or difference between AFDataPipe and AFDataCache?

Also, is one of these classes equivalent to the streams feature in PI Web API?

Parents
  • Have you tried searching in the AF SDK Developers Reference?

     

    AFDataPipe Class

     

    AFDataCache Class

     

    The REMARKS for AFDataCache states:

    AFDataCache will generate and return the corresponding list of cached enabled AFData. Be default, AFDataCache uses AFDataPipe to populate the run time events in the cache. As a result, AFAttributes monitored by the AFDataCache must support AFDataPipe. The use of AFDataPipe to populate the cache can be turned off at the time of adding the AFAttribute using Manual or ManualRange. See the Add(IList<AFAttribute> , AFDataCacheUpdateOption) method for details.

     

    There is a good example in the AFDataCache link that uses both a data pipe and a data cache.

     

     In PI Web API, a Stream is an individual PIPoint or AFAttribute. A StreamSet is a collection of 1 or more such items. Stream (Core Service) help link.

     

    Given the interest in AFDataCache, I am guessing that the "streams feature" you mention is most likely the Streams Update (Core Services). The help states:

     Stream Updates is a way in PI Web API to stream incremental and most recent data updates for PIPoints/Attributes on streams and streamsets without opening a websocket.

     

    If you are not interested in incremental updates or most recent data updates, then there are many Rich Data Access (RDA) calls available to you in AF SDK. This can be done on individual PIPoint or AFAttributes as well as collections in a PIPointList or AFAttributeList. There may be an intermediate object called AFData (for one item) or AFListData (for a collection), and typically either object is exposed as the Data property of PIPoint, AFAttribute, PIPointList, or AFAttributeList.

     

    You encouraged to find this in the AF SDK help to learn more about them. A brief summary of some offerings:

     

    RecordedValue and RecordedValues

    CurrentValue, CurrentValues, EndOfStream

    InterpolatedValue and InterpolatedValues

    PlotValues (efficiently condenses dense datasets to fit in limited plot area. Example: you have 50000 data values but the plot area only has 1600 pixels.)

    Summary and Summaries (averaging, totaling, min, max, etc.)

     

Reply
  • Have you tried searching in the AF SDK Developers Reference?

     

    AFDataPipe Class

     

    AFDataCache Class

     

    The REMARKS for AFDataCache states:

    AFDataCache will generate and return the corresponding list of cached enabled AFData. Be default, AFDataCache uses AFDataPipe to populate the run time events in the cache. As a result, AFAttributes monitored by the AFDataCache must support AFDataPipe. The use of AFDataPipe to populate the cache can be turned off at the time of adding the AFAttribute using Manual or ManualRange. See the Add(IList<AFAttribute> , AFDataCacheUpdateOption) method for details.

     

    There is a good example in the AFDataCache link that uses both a data pipe and a data cache.

     

     In PI Web API, a Stream is an individual PIPoint or AFAttribute. A StreamSet is a collection of 1 or more such items. Stream (Core Service) help link.

     

    Given the interest in AFDataCache, I am guessing that the "streams feature" you mention is most likely the Streams Update (Core Services). The help states:

     Stream Updates is a way in PI Web API to stream incremental and most recent data updates for PIPoints/Attributes on streams and streamsets without opening a websocket.

     

    If you are not interested in incremental updates or most recent data updates, then there are many Rich Data Access (RDA) calls available to you in AF SDK. This can be done on individual PIPoint or AFAttributes as well as collections in a PIPointList or AFAttributeList. There may be an intermediate object called AFData (for one item) or AFListData (for a collection), and typically either object is exposed as the Data property of PIPoint, AFAttribute, PIPointList, or AFAttributeList.

     

    You encouraged to find this in the AF SDK help to learn more about them. A brief summary of some offerings:

     

    RecordedValue and RecordedValues

    CurrentValue, CurrentValues, EndOfStream

    InterpolatedValue and InterpolatedValues

    PlotValues (efficiently condenses dense datasets to fit in limited plot area. Example: you have 50000 data values but the plot area only has 1600 pixels.)

    Summary and Summaries (averaging, totaling, min, max, etc.)

     

Children
No Data