Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Description

The virtual "Math" sensor allows you to calculate the value according to the data of arbitrary sensors.

Adding the Math virtual element

To create a "Math" element, press add button "  " inside "Group tree" or "System tree" menu. Then choose "Math sensor". A modal window will appear:

Click on the "Math sensor". Math element form will be opened:

Fields in the form available for change:

#NameDescription
1NameCreated element name
2User defined typeDefines the icon to be displayed in the "System tree"
3Units of measurementThe unit of measure in which the value is displayed in the "System tree"
4Minimum valueDetermines the minimum measurement range, when the value is out of range, the sensor goes into "Not connected" state
5Maximum valueDetermines the maximum measurement range, when the value is out of range, the sensor goes into a "Not connected" state
6Alarm and warning levelsDefines the alarm and warning thresholds, as for other sensors, see Sensor configuration
7HysteresisOption of setting the hysteresis state, see Sensor configuration


The configuration of data sources is available in "Additional" tab:

Fields in the form available for change:

#NameDescription
1Expression

Function of the form f (x). To calculate the indirect value of the sensor is possible to use an arbitrary expression, which are permissible "(", ")", as well as:

    • operators: "+", "-", "*", "/", "%" (remainder of the division), "^" (exponentiation);
    • functions: "abs","sqrt","exp","ln","log","sin","cos","tan","asin","acos","atan";
    • constants: "pi" (3.1415926...), "e" (2.7182818...);
    • point is used as decimal separator (3.14).

        For example: "0.1*x+0.5"

2Polling period

Defines the update time of the sensor value

3Add variableAllows to add a new variable
4VariableSpecifies a unique variable name A - Z, names cannot be repeated
5Corresponding sensorDetermines the sensor whose value is used in the calculations
6

Delete the variable

You can use up to 26 variables with the names A - Z. Each variable can be associated with its own sensor, including the Math sensor.

Warning

If any of the sensors used as a variable source is not available, then the Math sensor will be in a "not connected" state.



Developer notes:

  • No labels