OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::pif::PifChannelTrim

One analog channel's trim, as the device applies 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, matching PifAnalogCalibration's convention rather than introducing a second one. The two directions do not share a scale: an input code is one of 1024 (0..1023, 10 mV a step), an output code is one of 1001 (0..1000, 10 mV or 20 uA a step depending on the range). So a gain is dimensionless and reads the same either way, while an offset only means something once you know which direction you asked for.

Public attributes

gain

float gain = 1.0F

Dimensionless. 1.0 changes nothing.

offset

float offset = 0.0F

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

source

PifTrimSource source = PifTrimSource::kUnknown

Where gain and offset came from. On kUnknown and kNone the two values are the identity and describe nothing the device does.