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::PifConfig
This can be single PIF or a set of stackable PIFs.
Public attributes
deviceType
PifDeviceType deviceType = PifDeviceType::Automatic
Specifies the desired PIF device type. For more details please refer either to documentation of the Process Interface (PIF) chapter.
deviceCount
int deviceCount = 1
Specifies how many stackable PIFs should be configurable through the SDK.
- This setting is only relevant for stackable PIFs. In all other cases the count can be derived from the device type.
- The number of actually connected stackable PIFs can be lower but the SDK will never report more connected stackable PIFs than specified by this count. For more details please refer either to documentation of the Process Interface (PIF) chapter.
analogInputs
std::vector< PifAiConfig > analogInputs
Configurations for the analog input channels in no specific order.
- All available channels that have no configuration are set to mode
off. - If multiple configurations for the same channel exist, only the one that was added first will be applied.
digitalInputs
std::vector< PifDiConfig > digitalInputs
Configurations for the digital input channels in no specific order.
- All available channels that have no configuration are set to mode
off. - If multiple configurations for the same channel exist, only the one that was added first will be applied.
analogOutputs
std::vector< PifAoConfig > analogOutputs
Configurations for the analog output channels in no specific order.
- All available channels that have no configuration are set to mode
off. - If multiple configurations for the same channel exist, only the one that was added first will be applied.
digitalOutputs
std::vector< PifDoConfig > digitalOutputs
Configurations for the digital output channels in no specific order.
- All available channels that have no configuration are set to mode
off. - If multiple configurations for the same channel exist, only the one that was added first will be applied.
failSafe
PifFsConfig failSafe
Configuration for the fail safe channel. The configuration will only be applied, if a fail safe channel exists.