PifChannelConfig
class optris_sdk.pif.PifChannelConfig
What one channel is for.
A digital input is a level with a threshold, not a bit, which is
why threshold lives here rather than in a global setting.
A channel whose value is a temperature
(KIND_AMBIENT_TEMPERATURE, KIND_INTERNAL_TEMPERATURE, and a
measurement field of a temperature statistic) has the SDK's
temperature unit as its own: Celsius unless
optris_sdk.set_temperature_unit chose Fahrenheit. Its
gain and offset map that unit to the wire, so in Fahrenheit
they read re-expressed (gain divided by 1.8, the offset shifted
to match) and still drive the same wire value; its threshold
and its clamp are temperatures, except that 0 and 0 stays "no
clamp" in either unit. On every other channel nothing here is
converted.
What is on the wire is never converted. The value
Pif.write_analog_output takes and the value
Pif.read_analog_input decodes follow the unit on such a
channel; the level on the pin does not, because a wire value is
never a temperature. Pif.read_analog_output,
Pif.read_raw_analog_input, a snapshot's analog_outputs
and raw_analog_inputs, and the FIELD_ANALOG_OUT signal answer
in volts or milliamperes, the same numbers in Celsius and in
Fahrenheit.
- Parameter
index— which channel of its kind. - Parameter
direction—DIRECTION_INPUTorDIRECTION_OUTPUT. - Parameter
signal—SIGNAL_DIGITAL,SIGNAL_ANALOGorSIGNAL_FAIL_SAFE. - Parameter
kind— what the value means --KIND_EMISSIVITY,KIND_FLAG_CONTROLand the rest. - Parameter
input_min— the low end of the clamp on a decoded analog input, in the channel's own unit. Leave both at 0 for no clamp. - Parameter
input_max— the high end of that clamp. - Parameter
gain— multiplies the electrical value to reach the value range it stands for. - Parameter
threshold— for a digital input, the level that counts as high.
PifChannelConfig — properties
index
Which channel of its kind.
direction
DIRECTION_INPUT or DIRECTION_OUTPUT.
signal
SIGNAL_DIGITAL, SIGNAL_ANALOG or
SIGNAL_FAIL_SAFE.
kind
What the value means. See channel_kind_name.
kind_name
gain
Multiplies the electrical value to reach the value range it stands for. On a temperature channel it maps the SDK's temperature unit, so it reads re-expressed in Fahrenheit (see the class docstring).
offset
Added after gain.
input_min
The low end of the clamp on a decoded analog input, in the
channel's own unit (a temperature in the SDK's temperature unit
on a temperature channel). 0 here and in input_max
means no clamp.
input_max
The high end of that clamp, in the same unit.
threshold
For a digital input, the level that counts as high. In the channel's own unit, so a temperature in the SDK's temperature unit on a temperature channel.
threshold_low_active
Whether the low side of threshold is the active
one.
active_low
Whether this line is active when it is low.
autonomous
Whether the camera firmware drives this channel itself.
active_value
Level driven when the channel's condition holds.
inactive_value
Level driven when it does not.
intermediate_value
Level driven while neither applies.
output_range
The range an analog output works in, as an
AnalogRange.
decimals
How many decimals a value on this channel is rendered to.
name
The channel's own name, or ''.
unit
The unit the decoded value is in, or ''.