How Could I Set AF Analyses Expression (Calculation) via AF-SDK?

I'm accessing to the PI AF, and would like to apply changes to Analyses of an element. I now know the following code allows to access to Analyses (actually, I always access to the Analyses via Python .NET framework). With this instance, how could I add a new Analyses Expression?

db.Elements.get_Item('SomeElement').Analyses

 

I would like to manage Analyses like the below picture (this is a toy case). My motivation is the application of multivariate analyses such as PCA or PLS on PI Analyses. Because numbers of variables involved tend to be large in multivariate analysis, I think upload of the model to PI Analyses should be done via AF-SDK.


Analyses Example.png
I hope somebody has a good idea or example script.

 

Best regards,

Shojiro

Parents
  • Hi [Mention:0051I000000cV5JQAU]​,

    Thank you for your feedback. Your point is right and I believe you implied computation cost and the major functionality of OSI-PI too expensive computation should not be run on AF Analysis. However, if you try to implement a multivariate model developed in a programming language such as Python, deployment of the models require additional servers and communication across the servers, which cause intensive work. In this context, I prefer to use AF Analysis for multivariate analysis. I looked through the page you gave me and found Examples AF Analysis - AF SDK Reference that has a sample code and that tells me how to deploy a model from a local machine onto PI AF server. As for computation cost, we have up to 60 variables to fed into a model, so we will take a close look how the model impacts machine resources...

     

    Thanks a lot!

  • ​,

    I understand. I'm happy to hear that you found the right resources.

    Please do note that AFSDK and Python may not be the best fit as Python isn't exactly a .NET friendly language. Please come back to this forum for further questions. Thank you.

Reply Children
No Data