<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Getting event weighted value from PI Historian in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564350#M30752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;A simple way to get event weighted totals is to use Statistics - AVG and then multiply by the time period.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have to wonder why you would want to do such a thing?  Time Weighted Averaging is not just industry standard when using process data via historians, it is also more correct in its representation of a process.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2010 13:04:50 GMT</pubDate>
    <dc:creator>agentry_src</dc:creator>
    <dc:date>2010-01-29T13:04:50Z</dc:date>
    <item>
      <title>Getting event weighted value from PI Historian</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaq-p/6564349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have created a Tag Query in MII 12.1 with following details:&lt;/P&gt;&lt;P&gt;Server: PI Historian&lt;/P&gt;&lt;P&gt;Query: Tag&lt;/P&gt;&lt;P&gt;Mode: Statistics&lt;/P&gt;&lt;P&gt;Method: Total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total function in PI is time weighted. It is adding up the raw values and then adjusting for the time period.&lt;/P&gt;&lt;P&gt;Is there a way that I can find event weighted value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 10:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaq-p/6564349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting event weighted value from PI Historian</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564350#M30752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;A simple way to get event weighted totals is to use Statistics - AVG and then multiply by the time period.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have to wonder why you would want to do such a thing?  Time Weighted Averaging is not just industry standard when using process data via historians, it is also more correct in its representation of a process.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 13:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564350#M30752</guid>
      <dc:creator>agentry_src</dc:creator>
      <dc:date>2010-01-29T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting event weighted value from PI Historian</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564351#M30753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can connect to PI using the oledb connector. You have to install PI SDK on .net then connect using an OLEDB Dataserver to a windows server/system datasource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll then be able to run queries on the pimean and piavg table. with a defined timestep in your where close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: select sinusoid.2hr from pimean where timestep = 500s and time &amp;gt; 'sthg'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arnaud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 14:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564351#M30753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting event weighted value from PI Historian</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564352#M30754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While the PI API does directly support a call that would return the &lt;EM&gt;EventWeighted&lt;/EM&gt; value, there is no way to make this call using the old &lt;STRONG&gt;UDS&lt;/STRONG&gt; products - you would need to use one of the alternative suggestions already made. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new &lt;STRONG&gt;PCo 2.1&lt;/STRONG&gt; release includes a PI Agent which supports a lot of additional functionality including new aggregate methods. The 2 methods pertaining to this thread are: "Integral" which works the way the current &lt;STRONG&gt;UDS&lt;/STRONG&gt; works performing the total as &lt;EM&gt;TimeWeighted&lt;/EM&gt; and the new "Sum" which would give you the total performed as &lt;EM&gt;EventWeighted&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 15:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564352#M30754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T15:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting event weighted value from PI Historian</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564353#M30755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using PCo 2.1 to call the SUM function for getting the event-weighted values should help me.&lt;/P&gt;&lt;P&gt;API for PI Historian has a method to do this:&lt;/P&gt;&lt;P&gt;PIAdvCalcVal(&amp;lt;TAGNAME&amp;gt;,&amp;lt;Start Date&amp;gt;,&amp;lt;End Date&amp;gt;,"total","event-weighted", 0,1, 0,"xxxx")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 06:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/getting-event-weighted-value-from-pi-historian/qaa-p/6564353#M30755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T06:03:57Z</dc:date>
    </item>
  </channel>
</rss>

