![Sutron MONITOR Скачать руководство пользователя страница 14](http://html.mh-extra.com/html/sutron/monitor/monitor_operation-and-maintenance-manual_1407880014.webp)
Equations are supported only by the first eight measurements
. Equations
may only be entered using the command line interface. The front panel may
not
be used to enter equations.
The field
Use Equations
can be set to enabled or to disabled. It determines
whether equation processing is to be applied to the raw data. The field
Equation
can be set to an ASCII string no longer than 128 bytes (per measurement). That
field contains the equation to be applied.
If both
Equations
and
Slope
and
Offset
are used,
Slope
and
Offset
are applied after
the equation is processed.
E.g. to convert Fahrenheit to Celsius, type into command line:
M1 EQUATION = (X-32.0)*5/9
In the example above, X refers to the sensor reading.
Note:
Equation processing can take a while to complete (up to several seconds).
If you are using a lengthy equation, Monitor may not be able to complete a
measurement every second, or even every two seconds (see
Bad Schedule
in the
Error section).
Equation Syntax
The equation is expressed in terms of "X" which will be applied to incoming
sensor data. You may also reference each measurement by its label or by the M1,
M2... designator. The expression is not case sensitive.
The following functions are available:
SIN, COS, TAN, ARCTAN, e.g. COS(90) = 0
SQRT is square root, e.g. SQRT(9) = 3
To raise a number to a power, use ^. For example X^2 is x squared. 2^X is 2 to the
power of X.
EXP, if EXP(x) = y, then LN(y) = x, e.g. EXP(1) = 2.718282
LN, natural log, e.g. LN(2.718282) = 1
LOG, 10 based log, e.g. LOG(10) = 1
INT returns the integral portion of a real number
INT(11.456) = 11.000 INT(-1.345) = -1.000
FRACT returns the fractional portion of a real number.
FRACT(11.456) = 0.456 FRACT(-1.345) = -0.345
ABS returns the absolute value of a real number.
ABS(11.456) = 11.456 ABS(-1.345) = 1.345
POLY is used to compute up to a 5th level polynomial equation:
POLY(x, A, B, C, D, E, F) equates to A + Bx + Cx^2 + Dx^3 + Ex^4 + Fx^5
STEINHART(x, A, B, C) is used for Steinhart-Hart equations,
where x is the resistance and result is the temperature in Celsius
A, B and C are thermistor specific constants
Steinhart result is computed like so: 1/(A + B*ln(x) +C*(ln(x)^3)) - 273.15
VREF = Internal value of VREF (about 2.5Volts)
Example: X/VREF*355 (for wind direction scaling)
14