OPC/Custom Functions for Calc Server Error
When I create an application and use the DeltaTotalCount aggregate with the end time in the future (based on the duration and start time) The calculation seems to truncate to Now and works fine. But in the Calc Server if I use the same aggregation and the end time is in the future, I get an error that 'Some part of the aggregate interval is in the future'. How can I get the same functionality as in the application in the calc server?
1 reply
-
Hi ,
Axiom is a little bit different in that it can use a partial interval as it grows throughout the set interval. You can do something similar to this using the ResettingAnchoredInterval function in Calcs. That function allows you to embed an aggregate within it which can be configured to output a value at set times throughout the full interval, similar to what you see in Axiom. For example...

So instead of just calculating once per day over the last 24 hours, this calculates periodically every 15 minutes as the interval grows. Then it resets at midnight and starts over. There's a 4th optional parameter I'm not showing here that allows you to offsets the aggregate interval.
I don't know if this will work for what you are trying to do or not, but I thought it would be helpful to know.