OptrisOptrisDocumentation

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

PifChannelTrim

pub struct PifChannelTrim

One analog channel's trim, as the device applies it.

This is the answer to "what is actually in force on this pin", which PifAnalogCalibration cannot give: that is device-wide, carries what the file declares, and the SDK applies none of it.

In converter codes, not in volts or milliamperes. The relation is trimmed = gain * untrimmed + offset, every value a count of the converter's own steps. gain is dimensionless and reads the same in either direction; offset only means something once you know which direction was asked for, which is what PifAnalogDirection selects.

Check source before believing gain and offset: on PifTrimSource::Unknown and PifTrimSource::None they are the identity and describe nothing the device does.

PifChannelTrim — fields

gain: f32

Dimensionless. 1.0 changes nothing.

offset: f32

In the queried direction's own converter codes. An offset of 2 is two steps, not two volts.

source: PifTrimSource

Where gain and offset came from.