Thermal Camera SDK 10.1.1
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
PifChannelConfigs.h
Go to the documentation of this file.
1// Copyright (c) 2008-2025 Optris GmbH & Co. KG
2
10
11#pragma once
12
13#include <ostream>
14#include <string>
15
16#include "otcsdk/Api.h"
17#include "otcsdk/common/Slope.h"
19
20
21namespace optris
22{
23
31{
32public:
35
36
46
63 OTC_SDK_API static PifAiConfig createAmbientTemperature(int deviceIndex, int pinIndex, float gain, float offset) noexcept;
64
81 OTC_SDK_API static PifAiConfig createEmissivity(int deviceIndex, int pinIndex, float gain, float offset) noexcept;
82
95 OTC_SDK_API static PifAiConfig createFlagControl(int deviceIndex, int pinIndex, float threshold, bool openIfLow) noexcept;
96
115 OTC_SDK_API static PifAiConfig createUncommittedValue(int deviceIndex, int pinIndex, const std::string& name, const std::string& unit, float gain, float offset) noexcept;
116
117
122
125
128
133
138};
139
140
148{
149public:
152
153
163
175 OTC_SDK_API static PifDiConfig createFlagControl(int deviceIndex, int pinIndex, bool openIfLow) noexcept;
176
177
182
183
186
189};
190
191
345
346
354{
355public:
358
359
369
381 OTC_SDK_API static PifDoConfig createFlagStatus(int deviceIndex, int pinIndex, bool lowIfOpen) noexcept;
382
394
406
420
421
426
427
430
433};
434
435
443{
444public:
447
448
455
462
463
466};
467
468
469// Utility functions
478OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifAiConfig& config) noexcept;
479
488OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifDiConfig& config) noexcept;
489
498OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifAoConfig& config) noexcept;
499
508OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifDoConfig& config) noexcept;
509
518OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifFsConfig& config) noexcept;
519
520} // namespace optris
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Contains enums defining various properties of process interfaces.
Contains a class holding the parameters for a linear transformation.
Encapsulates the configuration for a PIF analog input channel.
Definition PifChannelConfigs.h:31
std::string uncommittedValueUnit
Unit of the uncommitted value.
Definition PifChannelConfigs.h:137
bool triggerLowActive
Indicates whether the trigger will be pulled if the input voltage is below or above the threshold.
Definition PifChannelConfigs.h:132
OTC_SDK_API PifAiConfig() noexcept
Constructor.
Slope slope
Defines how input voltages are converted into the desired target values.
Definition PifChannelConfigs.h:127
static OTC_SDK_API PifAiConfig createFlagControl(int deviceIndex, int pinIndex, float threshold, bool openIfLow) noexcept
Creates a configuration for the mode PifAiMode::FlagControl.
static OTC_SDK_API PifAiConfig createEmissivity(int deviceIndex, int pinIndex, float gain, float offset) noexcept
Creates a configuration for the mode PifAiMode::Emissivity.
int deviceIndex
Identifies the channel by specifying the PIF device on which its pins are located.
Definition PifChannelConfigs.h:119
static OTC_SDK_API PifAiConfig createOff(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifAiMode::Off.
std::string uncommittedValueName
Name of the uncommitted value.
Definition PifChannelConfigs.h:135
static OTC_SDK_API PifAiConfig createAmbientTemperature(int deviceIndex, int pinIndex, float gain, float offset) noexcept
Creates a configuration for the mode PifAiMode::AmbientTemperature.
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.
PifAiMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:124
int pinIndex
Identifies the channel by locating its pins on the specified PIF device.
Definition PifChannelConfigs.h:121
float triggerThreshold
Trigger threshold for the input voltage.
Definition PifChannelConfigs.h:130
Encapsulates the configuration for a PIF analog output channel.
Definition PifChannelConfigs.h:199
OTC_SDK_API PifAoConfig() noexcept
Constructor.
PifAoMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:328
static OTC_SDK_API PifAoConfig createExternalCommunication(int deviceIndex, int pinIndex, PifAoOutputMode outputMode) noexcept
Creates a configuration for the mode PifAoMode::ExternalCommunication.
Slope slope
Defines how data points are converted into output values.
Definition PifChannelConfigs.h:333
int fieldIndex
Identifies the measurement field by its index.
Definition PifChannelConfigs.h:336
int pinIndex
Identifies the channel by locating its pins on the specified PIF device.
Definition PifChannelConfigs.h:324
int deviceIndex
Identifies the channel by specifying the PIF device on which its pins are located.
Definition PifChannelConfigs.h:322
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.
static OTC_SDK_API PifAoConfig createOff(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifAoMode::Off.
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.
float outputIntermediate
Output value for an intermediate event/state.
Definition PifChannelConfigs.h:341
static OTC_SDK_API PifAoConfig createMeasurementField(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, int fieldIndex, float gain, float offset) noexcept
Creates a configuration for the mode PifAoMode::MeasurementField.
float outputActive
Output value for an active event/state.
Definition PifChannelConfigs.h:339
static OTC_SDK_API PifAoConfig createFailSafe(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float pulse) noexcept
Creates a configuration for the mode PifAoMode::FailSafe.
PifAoOutputMode outputMode
Output mode to be applied to the channel.
Definition PifChannelConfigs.h:330
float outputInactive
Output value for an inactive event/state.
Definition PifChannelConfigs.h:343
static OTC_SDK_API PifAoConfig createFrameSync(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float pulse) noexcept
Creates a configuration for the mode PifAoMode::FrameSync.
Encapsulates the configuration for a PIF digital input channel.
Definition PifChannelConfigs.h:148
bool triggerLowActive
Indicates whether the trigger will be pulled if the input signal is low.
Definition PifChannelConfigs.h:188
static OTC_SDK_API PifDiConfig createOff(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifDiMode::Off.
OTC_SDK_API PifDiConfig() noexcept
Constructor.
PifDiMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:185
int pinIndex
Identifies the channel by locating its pins on the specified PIF device.
Definition PifChannelConfigs.h:181
static OTC_SDK_API PifDiConfig createFlagControl(int deviceIndex, int pinIndex, bool openIfLow) noexcept
Create a configuration for the mode PifDiMode::FlagControl.
int deviceIndex
Identifies the channel by specifying the PIF device on which its pins are located.
Definition PifChannelConfigs.h:179
Encapsulates the configuration for a PIF digital output channel.
Definition PifChannelConfigs.h:354
PifDoMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:429
static OTC_SDK_API PifDoConfig createFrameSync(int deviceIndex, int pinIndex) noexcept
Create a configuration for the mode PifDoMode::FrameSync.
int deviceIndex
Identifies the channel by specifying the PIF device on which its pins are located.
Definition PifChannelConfigs.h:423
static OTC_SDK_API PifDoConfig createExternalCommunication(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifDoMode::ExternalCommunication.
static OTC_SDK_API PifDoConfig createFailSafe(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifDoMode::FailSafe.
static OTC_SDK_API PifDoConfig createOff(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifDoMode::Off.
static OTC_SDK_API PifDoConfig createFlagStatus(int deviceIndex, int pinIndex, bool lowIfOpen) noexcept
Creates a configuration for the mode PifDoMode::FlagStatus.
OTC_SDK_API PifDoConfig() noexcept
Constructor.
int pinIndex
Identifies the channel by locating its pins on the specified PIF device.
Definition PifChannelConfigs.h:425
bool outputLowActive
Indicates if the output is low active.
Definition PifChannelConfigs.h:432
Encapsulates the configuration for a PIF fail safe channel.
Definition PifChannelConfigs.h:443
static OTC_SDK_API PifFsConfig createOff() noexcept
Creates a configuration for the PifFsMode::Off.
OTC_SDK_API PifFsConfig() noexcept
Constructor.
PifFsMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:465
static OTC_SDK_API PifFsConfig createOn() noexcept
Creates a configuration for the PifFsMode::On.
Encapsulates the parameters of a linear transformation.
Definition Slope.h:25
Main SDK namespace.
Definition DeviceInfo.h:24
PifAoMode
Represents the available modes for PIF analog output channels.
Definition PifProperties.h:58
PifAiMode
Represents the available modes for PIF analog input channels.
Definition PifProperties.h:41
PifFsMode
Represents the available modes for PIF fail safe channels.
Definition PifProperties.h:80
PifDiMode
Represents the available modes for PIF digital input channels.
Definition PifProperties.h:51
PifAoOutputMode
Represents the available output modes for PIF analog output channels.
Definition PifProperties.h:88
PifDoMode
Represents the available modes for PIF digital output channels.
Definition PifProperties.h:70