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 Reply Children
No Data