138 float minTemperature,
139 float maxTemperature)
noexcept;
160 float maxValue)
noexcept;
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