OptrisOptrisDocumentation

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

optris::sdk::PifOutputAction

Drive a PIF output while the alarm is active.

The output follows the alarm and not the trigger: asserted while the rule is ringing, de-asserted when it clears, when it is inhibited and when it is disabled, whatever ActionTrigger the action carries. The trigger decides when the hold is taken.

A cycle with no reading is not a release. A rule in AlarmState::kOrphaned has no reading, not a cleared condition, so a held output sits still through it and is still asserted when the reading comes back -- the same reading of kOrphaned the latch takes (see Rule::inhibit). Without that a relay dropped out for the length of every gap and was driven again on the return, inside one excursion.

The consequence of that, stated rather than hidden: a rule whose input never returns -- its region deleted, a channel the camera does not have -- holds its output until the rule is disabled, edited off the pin, removed, or the camera is closed. All four release it. There is deliberately no timeout.

Public attributes

channel

uint8_t channel = 0

which output channel

digital

bool digital = true

digital output, or analogue when false

active_value

float active_value = 1.0F

driven while the alarm is raised

inactive_value

float inactive_value = 0.0F

driven once it clears