OptrisOptrisDocumentation

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

PifFailSafeConfig

class optris_sdk.pif.PifFailSafeConfig

The fail-safe watchdog: a line that must keep changing.

The toggle is the load-bearing part. The line alternates every period_ms; a receiver that sees it stop knows the host stopped, which is the entire point. A constant level would be indistinguishable from the fault it exists to signal.

Constructible, because it is what Pif.fail_safe takes when written as well as what it answers when read.

  • Parameter period_ms — shortest interval between edges. Bounded above by PifHardwareInfo.fail_safe_max_period_ms; a longer period is refused rather than clamped. Zero means "step on every passed check", which is what the hardware group would rather an application asked for.
  • Parameter active_value — level driven when the watchdog is satisfied. Used only on an analog line, in the channel's output range's own unit. Inert on a digital line and on the dedicated fail-safe terminals.
  • Parameter default_to_range_endpoints — beat between the two ends of the channel's range when no level was given. On by default. A flag rather than a sentinel in the floats, because telling "the caller asked for 1" from "nobody set a level" needs a third state.
  • Parameter on_alarm — never implemented, on any camera. Setting it is refused with optris_sdk.errors.NotSupportedError rather than accepted and ignored. Drive an ordinary digital or analog output from the alarm rule instead, and keep the fail-safe line for camera and pipeline health.
  • Parameter on_flag_timeout — not configured from here. Setting it is refused with optris_sdk.errors.NotSupportedError. The shutter is watched by the camera, through a legacy setting reachable only from a legacy configuration file -- not from this API, the C ABI or .NET. Refused rather than accepted so no application believes it has a shutter interlock it does not have.
  • Parameter flag_cycles — inert. Meaningful only alongside on_flag_timeout, which is refused, so it can never be reached. Deliberately not refused on its own: it is part of the record every caller round-trips, and refusing a value that was merely read back and written again would reject a plain watchdog that asked for nothing.

PifFailSafeConfig — methods

__repr__()