OptrisOptrisDocumentation

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

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::PifAoConfig

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

PifAoMode mode = PifAoMode::Off

Mode to be applied to the channel.

outputMode

PifAoOutputMode outputMode = PifAoOutputMode::_0_10V

Output mode to be applied to the channel.

slope

Slope slope = {1.F, 0.F}

Defines how data points are converted into output values.

fieldIndex

int fieldIndex = 0

Identifies the measurement field by its index.

fieldStat

FieldStat fieldStat = FieldStat::Mean

Determines which field statistic should be output.

outputActive

float outputActive = 10.0F

Output value for an active event/state.

outputIntermediate

float outputIntermediate = 10.0F

Output value for an intermediate event/state.

outputInactive

float outputInactive = 0.0F

Output value for an inactive event/state.

Public static functions

createOff

static OTC_SDK_API PifAoConfig createOff(int deviceIndex, int pinIndex) noexcept

Creates a configuration for the mode PifAoMode::Off.

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.

Returns: configuration for the mode PifAoMode::Off.

createAlarm

static OTC_SDK_API PifAoConfig createAlarm(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float active, float clear) noexcept

Creates a configuration for the mode PifAoMode::Alarm. The values for active and clear are automatically clipped to the specified output mode limits.

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.
outputMode to apply.
active value to output if the alarm is active.
clear value to output if the alarm is clear.

Returns: configuration for the mode PifAoMode::Alarm.

createExternalCommunication

static OTC_SDK_API PifAoConfig createExternalCommunication(int deviceIndex, int pinIndex, PifAoOutputMode outputMode) noexcept

Creates a configuration for the mode PifAoMode::ExternalCommunication. When set to external communication the output value of the channel can be set with ProcessInterface::setAoValue().

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.
outputMode to apply.

Returns: configuration for the mode PifAoMode::ExternalCommunication.

createFlagStatus

static OTC_SDK_API PifAoConfig createFlagStatus(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float open, float moving, float closed) noexcept

Creates a configuration for the mode PifAoMode::FlagStatus. The values for open, moving and closed are automatically clipped to the specified output mode limits.

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.
outputMode to apply.
open value to output if the shutter flag is open.
moving value to output if the shutter flag is moving.
closed value to output if the shutter flag is closed.

Returns: configuration for the mode PifAoMode::FlagStatus.

createFrameSync

static OTC_SDK_API PifAoConfig createFrameSync(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float pulse) noexcept

Creates a configuration for the mode PifAoMode::FrameSync. The value for pulse will automatically be clipped to the specified output mode limits.

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.
outputMode to apply.
pulse height of the generated pulse indicating an newly captured frame.

Returns: configuration for the mode PifAoMode::FrameSync.

createInternalTemperature

static OTC_SDK_API PifAoConfig createInternalTemperature(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float gain, float offset) noexcept

Creates a configuration for the mode PifAoMode::InternalTemperature. The internal temperature t_internal is converted into an output value X_out as follows: X_out = gain * t_internal + offset

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.
outputMode to apply.
gain for converting the internal temperature into an output value.
offset for converting the internal temperature into an output value.

Returns: configuration for the mode PifAoMode::InternalTemperature.

createMeasurementField

static OTC_SDK_API PifAoConfig createMeasurementField(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, const MeasurementField::ConstShared &field, FieldStat fieldStat, float gain, float offset) noexcept

Creates a configuration for the mode PifAoMode::MeasurementField. The data point of the measurement field that will be output is given by the value of the MeasurementFieldConfig::mode and can be accessed through MeasurementField::getDataPoint(). Its value x_field is converted into an output value X_out as follows: X_out = gain * x_field + offset

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.
outputMode to apply.
field shared pointer to the measurement field. If nullptr is passed, the field index will be set to 0.
fieldStat determining which field statistic should be output.
gain for converting the measurement field data point into an output value.
offset for converting the measurement field data point into an output value.

Returns: configuration for the mode PifAoMode::MeasurementField.

createFailSafe

static OTC_SDK_API PifAoConfig createFailSafe(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float pulse) noexcept

Creates a configuration for the mode PifAoMode::FailSafe. Refer to the Fail Safe chapter for more details. The value for pulse will automatically be clipped to the specified output mode limits.

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.
outputMode to apply.
pulse height of the output heart beat signal.

Returns: configuration for the mode PifAoMode::FailSafe.