OptrisOptrisDocumentation

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

IOSnapshot

public sealed class IOSnapshot

Every channel's value, read in one transaction.

The point of reading them together is that they cannot skew against each other: two separate reads can straddle a change and describe a state the machine was never in.

IOSnapshot: properties

public IReadOnlyList<float> AnalogInputs { get; }

The analog inputs, by channel index, each in its own configured unit.

A channel with no configuration over it has no unit of its own and reads in volts, the same unit as IOSnapshot.RawAnalogInputs. A channel whose own unit is a temperature reads in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit); see PifChannel.

public IReadOnlyList<bool> AnalogInputsClamped { get; }

Whether each analog input's decoded value is being held at one of its configured bounds.

The actionable half of IOSnapshot.RawAnalogInputs, and the answer to "is my sensor saturated, or is my slope wrong?". With PifChannel.InputMinimum and PifChannel.InputMaximum set, a sensor driven past its bound reads as the bound and nothing else says the wire has gone further.

false for a channel with no bounds configured, for an unconfigured channel, and while IOSnapshot.InputsKnown is false. This is the channel's clamp only; the wire clamp, the fixed 0-10 V the hardware can carry, shows instead in IOSnapshot.RawAnalogInputs.

public IReadOnlyList<float> AnalogOutputs { get; }

The analog outputs, by channel index, as they are on the wire: in the unit ProcessInterface.ReadAnalogOutput(…) answers in.

Volts or milliamperes, the same numbers in Celsius and in Fahrenheit, even on a channel whose own unit is a temperature: a wire value is never a temperature.

public IReadOnlyList<DigitalState> DigitalInputs { get; }

The digital inputs, by channel index.

public IReadOnlyList<DigitalState> DigitalOutputs { get; }

The digital outputs, by channel index.

public DigitalState FailSafeLevel { get; }

The level on the dedicated fail-safe terminals.

DigitalState.Unknown when nothing has driven them: no fail-safe configured, one configured onto a digital or analog output instead (PifSignal.Digital, PifSignal.Analog), or one armed whose first heartbeat has not arrived.

The dedicated line is not a digital output: it has no index, and appears in neither IOSnapshot.DigitalOutputs nor ProcessInterface.ReadDigitalOutput(…). This is its only readback.

Like the outputs either side of it, this is what the SDK drove rather than a measurement: no process interface reports that terminal back. A watchdog that is alternating shows this property changing every FailSafeConfiguration.Period; one that has tripped shows it holding still.

public bool InputsKnown { get; }

Whether the input readings mean anything yet.

Most process interfaces cannot be read on demand: their inputs arrive with a frame. Until the camera has delivered one, this is false, IOSnapshot.DigitalInputs read as DigitalState.Unknown and IOSnapshot.AnalogInputs are Single.NaN.

IOSnapshot.DigitalOutputs and IOSnapshot.AnalogOutputs are valid either way: they are what the SDK drove.

public IReadOnlyList<float> RawAnalogInputs { get; }

The same analog inputs as they are on the wire, in volts, before any channel decode.

What a multimeter on the pin would show. A readout and an alarm want IOSnapshot.AnalogInputs: "0.94 emissivity", "6.3 bar"; commissioning wants this one, because an operator wiring a sensor asks "what voltage is actually on pin 2?" and compares it against a meter. Both are here because a configured channel could otherwise give only the first.

Transaction-consistent with IOSnapshot.AnalogInputs: the same reading, reported twice, at no extra cost in device traffic. Single.NaN while IOSnapshot.InputsKnown is false.

public TimeSpan Timestamp { get; }

When the values were read, on the camera's own clock.