OptrisOptrisDocumentation

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

RadiationSources

public readonly record struct RadiationSources : IEquatable<RadiationSources>

Which of the radiation parameters in force the application owns, and which a process-interface input is driving.

ThermalCamera.Radiation reads the parameters back from the engine rather than echoing the last write, so a value a PIF input supplied comes back from it looking exactly like one that was set through this API. This is what tells them apart: an application that lets an operator edit the emissivity or the ambient temperature can show the field read-only, and say which input owns it, instead of accepting an edit the next PIF sample discards. A replay and a still have no process interface, so asking them raises FeatureNotSupportedException rather than answering RadiationParameterSource.Sdk; a value standing in for "does not apply" is the shape worth not shipping.

The answer follows the channel table, not the samples. An input configured as PifChannelKind.Emissivity owns the emissivity from the moment it is configured, before the first frame carries a reading for it, and whether or not any sample ever arrives. So reading this once after configuring the process interface is enough; it does not have to be polled per frame. It changes only when the channel table does, which is when this application changed it, or when a camera refused a channel it was asked for. That last case is why guessing from an application's own table is not the same answer.

Only the two parameters a PIF can drive are here. There is no transmissivity, because no PIF channel kind decodes to one; a property fixed at RadiationParameterSource.Sdk that could never hold anything else is not information.

RadiationSources: constructors

public RadiationSources(RadiationParameterSource Emissivity, RadiationParameterSource AmbientTemperature)

Which of the radiation parameters in force the application owns, and which a process-interface input is driving.

  • Emissivity: Where the emissivity in force came from.
  • AmbientTemperature: Where the ambient temperature in force came from. A PIF ambient channel takes effect regardless of RadiationParameters.EstimateAmbient and clears it as a side effect, so a configuration that asked the camera to estimate the ambient quietly stops doing so once such a channel is configured. This says the channel is driving it; it does not say what happened to the estimate flag; read that back from ThermalCamera.Radiation.

ThermalCamera.Radiation reads the parameters back from the engine rather than echoing the last write, so a value a PIF input supplied comes back from it looking exactly like one that was set through this API. This is what tells them apart: an application that lets an operator edit the emissivity or the ambient temperature can show the field read-only, and say which input owns it, instead of accepting an edit the next PIF sample discards. A replay and a still have no process interface, so asking them raises FeatureNotSupportedException rather than answering RadiationParameterSource.Sdk; a value standing in for "does not apply" is the shape worth not shipping.

The answer follows the channel table, not the samples. An input configured as PifChannelKind.Emissivity owns the emissivity from the moment it is configured, before the first frame carries a reading for it, and whether or not any sample ever arrives. So reading this once after configuring the process interface is enough; it does not have to be polled per frame. It changes only when the channel table does, which is when this application changed it, or when a camera refused a channel it was asked for. That last case is why guessing from an application's own table is not the same answer.

Only the two parameters a PIF can drive are here. There is no transmissivity, because no PIF channel kind decodes to one; a property fixed at RadiationParameterSource.Sdk that could never hold anything else is not information.

RadiationSources: properties

public RadiationParameterSource AmbientTemperature { get; init; }

Where the ambient temperature in force came from.

A PIF ambient channel takes effect regardless of RadiationParameters.EstimateAmbient and clears it as a side effect, so a configuration that asked the camera to estimate the ambient quietly stops doing so once such a channel is configured. This says the channel is driving it; it does not say what happened to the estimate flag; read that back from ThermalCamera.Radiation.

public bool AnyFromPif { get; }

Whether a process-interface input is driving either of them.

The one-line test for "is any part of this panel not mine to edit".

public RadiationParameterSource Emissivity { get; init; }

Where the emissivity in force came from.