Thermal Camera SDK 11.3.0
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
AlarmChannelConfig.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#include <vector>
16
17#include "otcsdk/Api.h"
19#include "otcsdk/common/Range.h"
23
24
25namespace optris
26{
27
30{
32 std::string name;
33
36
38 int fieldIndex = 0;
41
44
46 bool enabled = true;
47
49 bool preAlarmEnabled = false;
57 RangeF preAlarmRange = {20.F, 40.F};
67 RangeF alarmRange = {25.F, 40.F};
68
74 bool partOfComposite = false;
75
81 std::vector<PifIndex> pifAoIndices;
87 std::vector<PifIndex> pifDoIndices;
88
89
103 OTC_SDK_API static AlarmChannelConfig createInternalTemperature(const std::string& name, float minTemperature, float maxTemperature) noexcept;
104
118 OTC_SDK_API static AlarmChannelConfig createChipTemperature(const std::string& name, float minTemperature, float maxTemperature) noexcept;
119
136 const MeasurementField::ConstShared& field,
138 float minTemperature,
139 float maxTemperature) noexcept;
140
157 int pifDeviceIndex,
158 int pifPinIndex,
159 float minValue,
160 float maxValue) noexcept;
161
162
171};
172
173
174// Utility functions
183OTC_SDK_API std::ostream& operator<<(std::ostream& out, const AlarmChannelConfig& config) noexcept;
184
185} // namespace optris
Contains enums defining various properties of alarms.
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 for generic ranges.
std::shared_ptr< const MeasurementField > ConstShared
Shared pointer type for measurement fields.
Definition MeasurementField.h:27
Main SDK namespace.
Definition AlarmChannel.h:21
OTC_SDK_API std::ostream & operator<<(std::ostream &out, const AlarmChannelConfig &config) noexcept
Output stream operator for alarm channel configurations.
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
AlarmInput
Represents the different inputs that an alarm channel monitors.
Definition AlarmProperties.h:24
@ InternalTemperature
Monitors the internal temperature of the device.
Definition AlarmProperties.h:26
Range< float > RangeF
Alias for a range with float components.
Definition Range.h:49
Holds the configuration of an alarm channel.
Definition AlarmChannelConfig.h:30
static OTC_SDK_API void validate(AlarmChannelConfig &config)
Validates the configuration of an alarm channel.
RangeF preAlarmRange
A pre-alarm will be active, if the input is not in [preAlarmRange.min, preAlarmRange....
Definition AlarmChannelConfig.h:57
static OTC_SDK_API AlarmChannelConfig createInternalTemperature(const std::string &name, float minTemperature, float maxTemperature) noexcept
Creates a configuration for an alarm channel monitoring the internal temperature.
FieldStat fieldStat
Identifies the statistic of the measurement field that should be used as input.
Definition AlarmChannelConfig.h:40
AlarmInput input
Specifies the input that is observed by the alarm channel.
Definition AlarmChannelConfig.h:35
static OTC_SDK_API AlarmChannelConfig createChipTemperature(const std::string &name, float minTemperature, float maxTemperature) noexcept
Creates a configuration for an alarm channel monitoring the sensor chip temperature.
std::vector< PifIndex > pifDoIndices
Identifies the PIF digital output channels to which the alarm status should be sent.
Definition AlarmChannelConfig.h:87
static OTC_SDK_API AlarmChannelConfig createMeasurementField(const std::string &name, const MeasurementField::ConstShared &field, FieldStat fieldStat, float minTemperature, float maxTemperature) noexcept
Creates a configuration for an alarm channel monitoring a measurement field temperature.
PifIndex uncommittedValuePifIndex
Identifies the PIF analog input channel that provides the uncommitted value that should be used as in...
Definition AlarmChannelConfig.h:43
bool preAlarmEnabled
Specifies whether the pre-alarm should be checked.
Definition AlarmChannelConfig.h:49
static OTC_SDK_API AlarmChannelConfig createUncommittedValue(const std::string &name, int pifDeviceIndex, int pifPinIndex, float minValue, float maxValue) noexcept
Creates a configuration for an alarm channel monitoring an uncommitted value provided by a PIF analog...
int fieldIndex
Identifies the measurement field by its index that should be used as input.
Definition AlarmChannelConfig.h:38
std::string name
Name of the alarm channel.
Definition AlarmChannelConfig.h:32
std::vector< PifIndex > pifAoIndices
Identifies the PIF analog output channels to which the alarm status should be sent.
Definition AlarmChannelConfig.h:81
bool enabled
Indicates whether the entire alarm channel is enabled or disabled.
Definition AlarmChannelConfig.h:46
bool partOfComposite
Indicates whether the alarm channel is part of the composite alarm.
Definition AlarmChannelConfig.h:74
RangeF alarmRange
The alarm will be active, if the input is not in [alarmRange.min, alarmRange.max].
Definition AlarmChannelConfig.h:67
Holds the indices that identify the physical pin on a PIF device for a PIF channel.
Definition PifProperties.h:98