I am new in OSI PI and am learning PI AF SDK. I have created Custom Data Reference using AF SDK 2.8.
This custom DR, do average of two attributes values (SINUSOID, CDT158) and store it into another attribute which is a PIPoint type.
Its working fine but only when I refresh custom DR attribute from PI System Explorer.
I want to update resultant attribute value whenever the values of source attributes (SINUSOID, CDT158) get changed OR in some regular interval. Means how I run this custom DR Logic continuously into PI AF server, as like default Data References (Formula, PIPoint, String builder and Table Lookup).
A Custom Data Reference (CDR) should focus on producing a dynamic calculation, and not updating back to the Data Archive. For your use case, the CDR is not the best tool. If you really want to write the values to a PIPoint, you should use Asset Analytics, which fits your use case much better.