5 of 5 people found this helpful
No, you can't use arrays properly.
- Use an AF table to store the curve and use the interpolation functionality of the Table Lookup DR to interpolate values on the curve.
- If you need proper (higher-order interpolation) curves, i often use Excel to translate the curve into a function using LINEST: http://www.engineerexcel.com/nonlinear-curve-fitting-in-excel/
Thanks for the suggestion. We may go for the AF table route, didn't know there is an interpolation function, as after some minor testing has yielded some promising results.
1 of 1 people found this helpful
We are planning on integrating analysis with Matlab for the 2018 release. I'm not sure how this will work exactly yet. You might want to reach out to Stephen Kwan with your use case to see if it will be possible in the 2018 release.
Here is the enahcement request:Write custom code for AF Analytics – Customer Feedback for OSIsoft & the PI System
2 of 2 people found this helpful
And we have a webinar on Wed March 21: Webinar: Asset Analytics Native Integration with MATLAB