These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::PifAiConfig
For a detailed overview of all available modes and parameters please refer to the corresponding section in the documentation of the configuration file.
Public attributes
index
PifIndex index = {0, 0}
Identifies the channel by the indices of its pin and the PIF device on which it is located.
mode
PifAiMode mode = PifAiMode::Off
Mode to be applied to the channel.
slope
Slope slope = {1.F, 0.F}
Defines how input voltages are converted into the desired target values.
triggerThreshold
float triggerThreshold = 0.F
Trigger threshold for the input voltage.
triggerLowActive
bool triggerLowActive = true
Indicates whether the trigger will be pulled if the input voltage is below or above the threshold.
uncommittedValueName
std::string uncommittedValueName
Name of the uncommitted value.
uncommittedValueUnit
std::string uncommittedValueUnit
Unit of the uncommitted value.
Public static functions
createOff
static OTC_SDK_API PifAiConfig createOff(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifAiMode::Off.
Parameters
| Name | Description |
|---|---|
deviceIndex |
identifying the channel. |
pinIndex |
identifying the channel. |
Returns: configuration for the mode PifAiMode::Off.
createAmbientTemperature
static OTC_SDK_API PifAiConfig createAmbientTemperature(int deviceIndex, int pinIndex, float gain, float offset) noexcept
Creates a configuration for the mode PifAiMode::AmbientTemperature. The input voltage U_in is converted to the ambient temperature t_ambient as follows: t_ambient = (U_in - offset) / gain
Attention: This mode is unique and can only be applied once for all channels.
Parameters
| Name | Description |
|---|---|
deviceIndex |
identifying the channel. |
pinIndex |
identifying the channel. |
gain |
for converting the input voltage into the ambient temperature. |
offset |
for converting the input voltage into the ambient temperature. |
Returns: configuration for the mode PifAiMode::AmbientTemperature.
createEmissivity
static OTC_SDK_API PifAiConfig createEmissivity(int deviceIndex, int pinIndex, float gain, float offset) noexcept
Creates a configuration for the mode PifAiMode::Emissivity. The input voltage U_in is converted to the emissivity e as follows: e = (U_in - offset) / gain
Attention: This mode is unique and can only be applied once for all channels.
Parameters
| Name | Description |
|---|---|
deviceIndex |
identifying the channel. |
pinIndex |
identifying the channel. |
gain |
for converting the input voltage into the emissivity. |
offset |
for converting the input voltage into the emissivity. |
Returns: configuration for the mode PifAiMode::Emissivity.
createFlagControl
static OTC_SDK_API PifAiConfig createFlagControl(int deviceIndex, int pinIndex, float threshold, bool openIfLow) noexcept
Creates a configuration for the mode PifAiMode::FlagControl.
Attention: This mode is unique and can only be applied once for all channels.
Parameters
| Name | Description |
|---|---|
deviceIndex |
identifying the channel. |
pinIndex |
identifying the channel. |
threshold |
voltage level. |
openIfLow |
if true, the shutter flag will be opened, if the input voltage is lower than the threshold. |
Returns: configuration for the mode PifAiMode::FlagControl.
createUncommittedValue
static OTC_SDK_API PifAiConfig createUncommittedValue(int deviceIndex, int pinIndex, const std::string &name, const std::string &unit, float gain, float offset) noexcept
Creates a configuration for the mode PifAiMode::UncommittedValue. The input voltage U_in is converted to the uncommitted value x as follows: x = (U_in - offset) / gain When ever U_in changes the SDK will trigger the callback IRImagerClient::onPifUncommittedValue().
Parameters
| Name | Description |
|---|---|
deviceIndex |
identifying the channel. |
pinIndex |
identifying the channel. |
name |
of the uncommitted value. |
unit |
of the uncommitted value. |
gain |
for converting the input voltage into the emissivity. |
offset |
for converting the input voltage into the emissivity. |
Returns: configuration for the mode PifAiMode::UncommittedValue.