OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_limits

The limits one band is evaluated against.

In the unit of the quantity the rule's input carries. For a temperature input low and high are temperatures in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit), and hysteresis, delta and epsilon are differences in degrees of that unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit). For a rule with a reference (optris_sdk_rule_set_reference()) the input is an offset, so all five are differences. A coverage, an area, a coordinate or a PIF voltage is not converted. The SDK keeps a limit in Celsius, so one set before a unit switch keeps its meaning and reads back in the new unit.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_limits).

low

float low

Lower limit, in the signal's own unit (see above).

high

float high

Upper limit, in the signal's own unit (see above).

hysteresis

float hysteresis

Release deadband. The value must come back this far past the limit before the band drops, which is what stops an alarm chattering on a value sitting exactly on its threshold.

delta

float delta

OPTRIS_SDK_COMPARE_CHANGED only: the smallest change that counts as a change.

epsilon

float epsilon

OPTRIS_SDK_COMPARE_EQUAL only: the tolerance around high.