OptrisOptrisDocumentation

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

optris_sdk_signal_id

Which observation a rule watches.

A rule is one signal, one condition, and what to do about it. The signal is addressed rather than named, so a rule on a region's mean temperature, on a PIF input and on a value the application publishes are the same shape.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_signal_id).

domain

optris_sdk_signal_domain domain

Where the observation comes from.

field

optris_sdk_signal_field field

Which quantity of it.

index

uint32_t index

Which one: a PIF channel number, a motion zone id, or the slot returned by optris_sdk_imager_register_signal().

For OPTRIS_SDK_SIGNAL_DOMAIN_REGION leave this zero and pass the region id to optris_sdk_imager_add_rule(), which fills it in -- and optris_sdk_imager_update_rule(), which fills it in again, so an edited rule stays on its own region.

Region slots are generational, so a rule holding a stale one reports OPTRIS_SDK_ALARM_ORPHANED rather than silently measuring whichever region reused the slot. Generations start at 1, so zero is never a live region slot: it always means "not resolved", and a signal left that way reports ORPHANED rather than reading the first region on the camera.

To name a region other than the rule's own -- for an inhibit -- get its slot from optris_sdk_imager_get_region_signal_slot().