Central Math Calculation ProcessorThis is a featured page

AirVision includes the capability to perform mathematical calculations at the server, either on a manual basis, or as a scheduled task. To perform these calculations, the user will need to define the mathematical calculation to be made in the Math Equation Editor. Each equation is given a name to reference (e.g., “SO2_Adjustment”) which is then referenced in the math utility or the Task Scheduler.
Equations may act on any defined average interval, and must reference Parameter Templates, rather than specific site/parameter combinations. This allows a general equation to be configured once, and used for multiple sites without having to repeat the same equation.

To create a new equation, open the Math Equation Editor and click the “Add Equation” button. Enter the Equation Name (required), and optional Description, and then the equation. The equation takes the form of parameter template names, operators, and functions. Parenthesis are supported.

Binary operators (operators on two variables) include:
* Multiply
/ Divide
+ Add
- Subtract
% Modulo (remainder)

Other binary and Uniary functions (functions that operate on one variable or one result of another embedded equation) include:
Name Description Usage
Abs Returns the absolute value of a specified number. Abs(-1)
Acos Returns the angle whose cosine is the specified number. Acos(1)
Asin Returns the angle whose sine is the specified number. Asin(0)
Atan Returns the angle whose tangent is the specified number. Atan(0)
Cos Returns the cosine of the specified angle. Cos(0)
Exp Returns e raised to the specified power. Exp(0)
Log Returns the logarithm of a specified number. Log(1, 10)
Log10 Returns the base 10 logarithm of a specified number. Log10(1)
Max Returns the larger of two specified numbers. Max(1, 2)
Min Returns the smaller of two numbers. Min(1, 2)
Pow Returns a specified number raised to the specified power. Pow(3, 2)
Round Rounds a value to the nearest integer or specified number of decimal places. The mid number behaviour can be changed by using EvaluateOption.RoundAwayFromZero during construction of the Expression object. Round(3.222, 2)
Sign Returns a value indicating the sign of a number. Sign(-10)
Sin Returns the sine of the specified angle. Sin(0)
Sqrt Returns the square root of a specified number. Sqrt(4)
Tan Returns the tangent of the specified angle. Tan(0)
Truncate Calculates the integral part of a number. Truncate(1.7)

Important note: these equations MUST be referred to by the case-specific version of the equation. You must use “Max(x,y)”, not “MAX(x,y).”

For equations, Information flags are not propogated, while Validity flags are propagated from constituent channels. Consult the Flags Editor for details on which flags are considered Informational and Validation flags.

Math Task Scheduler:
The task scheduler can execute equations automatically using the “Calculate Math Parameters Type” task. This task operates on a particular site and interval combination, and seeks out all equations for which there are fully matching parameter templates. If an equation in the table can’t be executed on that site for lack of parameter templates or available data, the equation is skipped.







sdrevik
sdrevik
Latest page update: made by sdrevik , Jun 21 2011, 9:04 AM EDT (about this update About This Update sdrevik Edited by sdrevik

487 words added
40 words deleted

view changes

- complete history)
Keyword tags: None
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.