OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

SignalId

public readonly record struct SignalId : IEquatable<SignalId>

Which observation an alarm rule watches.

A rule is one signal, one condition, and what to do about it, so a rule on a measuring region's temperature, on a process-interface input and on a value your own application publishes are the same shape. This is the part that says which.

Use the factory methods rather than setting the fields by hand: they pair a domain with a field from the right group, which is the mistake this type otherwise invites.

SignalId: properties

public SignalDomain Domain { get; init; }

Where the observation comes from.

public SignalField Field { get; init; }

Which quantity of it.

public uint Index { get; init; }

Which one: a process-interface channel number, a motion zone id, or the slot from ThermalCamera.RegisterSignal(…).

Left at zero for a region signal: the camera fills it in from the region the rule is attached to, both when the rule is added and again whenever it is updated, so a caller never has to look one up.

Zero is never a live region. To name a region other than the one the rule is attached to (an inhibit watching a different area, say), pass its slot from ThermalCamera.GetRegionSignalSlot(…) to SignalId.Region(…).

SignalId: methods

public static SignalId Device(SignalField field)

A camera telemetry reading.

  • field: Which reading.

Returns: The signal.

public static SignalId Motion(uint zoneId, SignalField field)

What a motion zone saw.

Returns: The signal.

public static SignalId ProcessInterface(uint channel, SignalField field)

A process-interface channel.

Returns: The signal.

public static SignalId Region(SignalField field)

A statistic of the region the rule is attached to.

  • field: Which statistic.

Returns: The signal.

The camera resolves the region when the rule is added and again on every update, so this stays bound to its own region across a threshold edit.

public static SignalId Region(uint slot, SignalField field)

A statistic of one particular region.

Returns: The signal.

Use this for an inhibit or a reference that names a region other than the rule's own. The slot is a runtime handle: it changes if the region is removed and re-added, so resolve it from the region id at the point of use rather than storing it. A rule whose slot has gone stale reports AlarmState.Orphaned rather than measuring whichever region took the slot over.

public static SignalId User(uint slot)

A value the application publishes.

Returns: The signal.