Calculations Inside Formulas

This example demonstrates how you can perform a calculation within a formula. In this specific case, we are taking the average of tag Simulation00001 over the previous hour. Typically, use a polled trigger to schedule the execution of the formula.

Example Code

Result=Calculation("Simulation00001","Average","Now-1hour","Now",Quality)