ReverseLinearScaler#

class ReverseLinearScaler(gain: float, offset: float, units: str)[source]#

Bases: Scaler

output = (raw - offset) / gain — inverse of LinearScaler, e.g. to back out a measurement amplifier.

Attributes

units

Physical units of the scaled output (e.g. "V", "degC", "psi").

Methods

scale

Convert a raw DAQ reading to a physical value in units.