Comparison can be performed using <, >, <=, >=, !=, and =. The result of a comparison is
1 for true or 0 for false.
The following bitwise boolean operators are supported: AND, OR, XOR, SHL, and SHR.
The last two are shift-left and shift-right. For instance (X SHL 4) would shift X left by 4
bits. AND & OR can also be used in logical expressions. For instance
(X>100) OR (X<50)
would result in 1 if X is above 100 or below 50; otherwise it would result in 0.
The NOT operator is logical not bitwise. This means that NOT 0 is 1 and NOT 1 is 0.
Also, the NOT of any non-zero number is 0.
eg. (X AND 128) != 0results in a 1 if bit 7 in X is set or 0 if bit 7 is clear. The bit mask
128 is 2^7. This assumes bit 0 is the least significant bit. In general, the bit mask for any
bit N is 2^N.
Equations can also contain references to other sensors: e.g. (X + AirTemp)/2
would add X to the AirTemp value and divide by 2. You may also use the M1, M2..
designators instead of measurement labels: e.g. (X+M4)/2 would add X to the result of
measurement four and divide it all by two.
Comments can be contained within braces { }
{convert from degrees Celsius to degrees Fahrenheit} X*9/5+32
Other examples:
SIN(X)+COS(X)+X^3+LOG(X)
(X>1000)*1000 + (X<=1000)*X {would limit the value so that it could never be greater
than 1000}
STEINHART(10000*X/(2.5-X),0.001127098,0.000234445,0.0000000865403)
{temperature sensor}
Details
Details can be enabled or disabled. If disabled (which is the default), the final
result is the only data logged after a measurement completes. If Details are
enabled, several readings are logged along with the final result:
•
Minimum (the lowest sample collected)
•
Maximum (the highest sample collected)
•
Number of samples collected
Details can only be enabled if averaging (see above) is taking place; otherwise,
the number of samples would be 1 and the minimum and maximum would be
equal to the final result. Details are useful for diagnostics and for capturing the
minimum and maximum values.
Log Error Value
When MONITOR is unable to get valid data from a sensor (more specifically,
whenever a
sensor failure
error occurs), MONITOR will change the sensor
reading to match the user set
Log Error Value
which defaults to -99999. Such
outlandish numbers are used to attract the user’s attention when viewing the log.
15