I am trying to figure out the best way to model an heat exchanger in my AF library.
We get some attributes from the PI server (DCS readings like temperature, pressure, ...).
We want some other attributes to be calculated, using an external DLL where we have our models. Our external analysis will calculate several parameters (performance): we want to store them in attributes of the same element.
The first solution that comes to my mind is to write a custom Data Reference Plugin, that would be called to calculate each "external attribute".
This approach works, but the inconvenience is that I need to make a call to my external routine for each external attribute.
It would be more efficient to call the external engine only once then get all the results as object. But how can I store multiple calculated attributes at once?
Should I use an "object" data type?
How can I then access the different values in AF?
Is there another approach?