OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

Limits

pub struct Limits

The limits one band is evaluated against.

All values are in the signal's own unit: a temperature in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit), volts or milliamps for an analog channel, whatever you published for an application value.

low and high are values of the signal. hysteresis, delta and epsilon are distances, so on a temperature they are differences in degrees of that unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit), never offset by 32. On a standard deviation, and on every limit of a rule with a reference (which tests the input minus the reference), all five are differences.

Limits — fields

low: f32

Lower limit.

high: f32

Upper limit.

hysteresis: f32

Release deadband.

The value must come back this far past the limit before the band drops. This is what stops an alarm chattering on a value sitting exactly on its threshold, and leaving it at zero is the most common cause of an alarm log full of noise.

delta: f32

For Compare::Changed: the smallest change that counts.

epsilon: f32

For Compare::Equal: the tolerance around high.

Limits — methods

pub fn above(high: f32, hysteresis: f32) -> Self

Alarm above a threshold, with a release deadband.

pub fn below(low: f32, hysteresis: f32) -> Self

Alarm below a threshold, with a release deadband.

pub fn band(low: f32, high: f32, hysteresis: f32) -> Self

A band between two values.