Thermal Camera SDK 11.3.0
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
PifChannelConfigs.h
Go to the documentation of this file.
1// Copyright (c) 2008-2026 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"
21
22
23namespace optris
24{
25
33{
35 PifIndex index = {0, 0};
36
37
40
42 Slope slope = {1.F, 0.F};
43
45 float triggerThreshold = 0.F;
47 bool triggerLowActive = true;
48
53
54
63 OTC_SDK_API static PifAiConfig createOff(int deviceIndex, int pinIndex) noexcept;
64
81 OTC_SDK_API static PifAiConfig createAmbientTemperature(int deviceIndex, int pinIndex, float gain, float offset) noexcept;
82
99 OTC_SDK_API static PifAiConfig createEmissivity(int deviceIndex, int pinIndex, float gain, float offset) noexcept;
100
113 OTC_SDK_API static PifAiConfig createFlagControl(int deviceIndex, int pinIndex, float threshold, bool openIfLow) noexcept;
114
133 OTC_SDK_API static PifAiConfig createUncommittedValue(int deviceIndex, int pinIndex, const std::string& name, const std::string& unit, float gain, float offset) noexcept;
134};
135
136
144{
146 PifIndex index = {0, 0};
147
148
151
153 bool triggerLowActive = true;
154
155
164 OTC_SDK_API static PifDiConfig createOff(int deviceIndex, int pinIndex) noexcept;
165
177 OTC_SDK_API static PifDiConfig createFlagControl(int deviceIndex, int pinIndex, bool openIfLow) noexcept;
178};
179
180
188{
190 PifIndex index = {0, 0};
191
192
197
199 Slope slope = {1.F, 0.F};
200
202 int fieldIndex = 0;
205
207 float outputActive = 10.0F;
209 float outputIntermediate = 10.0F;
211 float outputInactive = 0.0F;
212
213
222 OTC_SDK_API static PifAoConfig createOff(int deviceIndex, int pinIndex) noexcept;
223
237 OTC_SDK_API static PifAoConfig createAlarm(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float active, float clear) noexcept;
238
250 OTC_SDK_API static PifAoConfig createExternalCommunication(int deviceIndex, int pinIndex, PifAoOutputMode outputMode) noexcept;
251
268 OTC_SDK_API static PifAoConfig createFlagStatus(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float open, float moving, float closed) noexcept;
269
284 OTC_SDK_API static PifAoConfig createFrameSync(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float pulse) noexcept;
285
303 OTC_SDK_API static PifAoConfig createInternalTemperature(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float gain, float offset) noexcept;
304
324 OTC_SDK_API static PifAoConfig createMeasurementField(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, const MeasurementField::ConstShared& field, FieldStat fieldStat, float gain, float offset) noexcept;
325
342 OTC_SDK_API static PifAoConfig createFailSafe(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float pulse) noexcept;
343};
344
345
353{
355 PifIndex index = {0, 0};
356
357
360
362 bool outputLowActive = true;
363
364
373 OTC_SDK_API static PifDoConfig createOff(int deviceIndex, int pinIndex) noexcept;
374
384 OTC_SDK_API static PifDoConfig createAlarm(int deviceIndex, int pinIndex, bool lowIfActive) noexcept;
385
397 OTC_SDK_API static PifDoConfig createFlagStatus(int deviceIndex, int pinIndex, bool lowIfOpen) noexcept;
398
409 OTC_SDK_API static PifDoConfig createFrameSync(int deviceIndex, int pinIndex) noexcept;
410
421 OTC_SDK_API static PifDoConfig createExternalCommunication(int deviceIndex, int pinIndex) noexcept;
422
435 OTC_SDK_API static PifDoConfig createFailSafe(int deviceIndex, int pinIndex) noexcept;
436};
437
438
446{
449
450
457
464};
465
466
467// Utility functions
476OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifAiConfig& config) noexcept;
477
486OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifDiConfig& config) noexcept;
487
496OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifAoConfig& config) noexcept;
497
506OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifDoConfig& config) noexcept;
507
516OTC_SDK_API std::ostream& operator<<(std::ostream& out, const PifFsConfig& config) noexcept;
517
518} // 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 various enums and structs representing the properties of fields.
Contains an interface representing a measurement field.
Contains enums defining various properties of process interfaces.
Contains a class holding the parameters for a linear transformation.
std::shared_ptr< const MeasurementField > ConstShared
Shared pointer type for measurement fields.
Definition MeasurementField.h:27
Main SDK namespace.
Definition AlarmChannel.h:21
PifAoMode
Represents the available modes for PIF analog output channels.
Definition PifProperties.h:59
@ Off
Off.
Definition PifProperties.h:60
PifAiMode
Represents the available modes for PIF analog input channels.
Definition PifProperties.h:42
@ Off
Off.
Definition PifProperties.h:43
PifFsMode
Represents the available modes for PIF fail safe channels.
Definition PifProperties.h:83
@ Off
Off.
Definition PifProperties.h:84
PifDiMode
Represents the available modes for PIF digital input channels.
Definition PifProperties.h:52
@ Off
Off.
Definition PifProperties.h:53
FieldStat
Represents the different field statistics that can be used by other components (PIF,...
Definition FieldProperties.h:33
@ Mean
Mean field temperature.
Definition FieldProperties.h:36
PifAoOutputMode
Represents the available output modes for PIF analog output channels.
Definition PifProperties.h:90
@ _0_10V
0 V - 10 V
Definition PifProperties.h:93
PifDoMode
Represents the available modes for PIF digital output channels.
Definition PifProperties.h:72
@ Off
Off.
Definition PifProperties.h:73
Encapsulates the configuration for a PIF analog input channel.
Definition PifChannelConfigs.h:33
std::string uncommittedValueUnit
Unit of the uncommitted value.
Definition PifChannelConfigs.h:52
bool triggerLowActive
Indicates whether the trigger will be pulled if the input voltage is below or above the threshold.
Definition PifChannelConfigs.h:47
Slope slope
Defines how input voltages are converted into the desired target values.
Definition PifChannelConfigs.h:42
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.
PifIndex index
Identifies the channel by the indices of its pin and the PIF device on which it is located.
Definition PifChannelConfigs.h:35
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:50
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:39
float triggerThreshold
Trigger threshold for the input voltage.
Definition PifChannelConfigs.h:45
Encapsulates the configuration for a PIF analog output channel.
Definition PifChannelConfigs.h:188
PifAoMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:194
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:199
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.
int fieldIndex
Identifies the measurement field by its index.
Definition PifChannelConfigs.h:202
PifIndex index
Identifies the channel by the indices of its pin and the PIF device on which it is located.
Definition PifChannelConfigs.h:190
FieldStat fieldStat
Determines which field statistic should be output.
Definition PifChannelConfigs.h:204
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:209
float outputActive
Output value for an active event/state.
Definition PifChannelConfigs.h:207
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:196
float outputInactive
Output value for an inactive event/state.
Definition PifChannelConfigs.h:211
static OTC_SDK_API PifAoConfig createFrameSync(int deviceIndex, int pinIndex, PifAoOutputMode outputMode, float pulse) noexcept
Creates a configuration for the mode PifAoMode::FrameSync.
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.
Encapsulates the configuration for a PIF digital input channel.
Definition PifChannelConfigs.h:144
PifIndex index
Identifies the channel by the indices of its pin and the PIF device on which it is located.
Definition PifChannelConfigs.h:146
bool triggerLowActive
Indicates whether the trigger will be pulled if the input signal is low.
Definition PifChannelConfigs.h:153
static OTC_SDK_API PifDiConfig createOff(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifDiMode::Off.
PifDiMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:150
static OTC_SDK_API PifDiConfig createFlagControl(int deviceIndex, int pinIndex, bool openIfLow) noexcept
Create a configuration for the mode PifDiMode::FlagControl.
Encapsulates the configuration for a PIF digital output channel.
Definition PifChannelConfigs.h:353
PifDoMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:359
PifIndex index
Identifies the channel by the indices of its pin and the PIF device on which it is located.
Definition PifChannelConfigs.h:355
static OTC_SDK_API PifDoConfig createFrameSync(int deviceIndex, int pinIndex) noexcept
Create a configuration for the mode PifDoMode::FrameSync.
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.
static OTC_SDK_API PifDoConfig createAlarm(int deviceIndex, int pinIndex, bool lowIfActive) noexcept
Creates a configuration for the mode PifDoMode::Alarm.
bool outputLowActive
Indicates if the output is low active.
Definition PifChannelConfigs.h:362
Encapsulates the configuration for a PIF fail safe channel.
Definition PifChannelConfigs.h:446
static OTC_SDK_API PifFsConfig createOff() noexcept
Creates a configuration for the PifFsMode::Off.
PifFsMode mode
Mode to be applied to the channel.
Definition PifChannelConfigs.h:448
static OTC_SDK_API PifFsConfig createOn() noexcept
Creates a configuration for the PifFsMode::On.
Holds the indices that identify the physical pin on a PIF device for a PIF channel.
Definition PifProperties.h:98
Encapsulates the parameters of a linear transformation.
Definition Slope.h:25