DataChangeFilter#
Defines a DataChangeFilter
for a monitored item. More…
Synopsis#
Functions#
def
deadbandType
()def
deadbandValue
()def
__eq__
(rhs)def
setDeadbandType
(deadbandType)def
setDeadbandValue
(deadbandValue)def
setTrigger
(trigger)def
trigger
()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
This class is used to set up filtering for a DataChange monitored item. It is defined in OPC-UA part 4, 7.12.2.
- class PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter#
PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter(trigger, deadbandType, deadbandValue)
PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter(arg__1)
- Parameters:
arg__1 –
PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter
deadbandValue –
double
deadbandType –
DeadbandType
trigger –
DataChangeTrigger
Constructs a data change filter with trigger on status
, deadband type none
and deadbandValue
0
.
Constructs a data change filter with trigger trigger
, deadband type deadbandType
and deadband value deadbandValue
.
Constructs a data change filter from rhs
.
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.DataChangeTrigger#
Enumerates the possible triggers for a DataChangeFilter
.
Constant
Description
QOpcUaMonitoringParameters.DataChangeFilter.DataChangeTrigger.Status
Triggers if the value’s status code changes.
QOpcUaMonitoringParameters.DataChangeFilter.DataChangeTrigger.StatusOrValue
Triggers if the value’s status code or the value itself changes.
QOpcUaMonitoringParameters.DataChangeFilter.DataChangeTrigger.StatusOrValueOrTimestamp
Triggers if the value’s status code, the value itself or the source timestamp changes.
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.DeadbandType#
Enumerates the possible deadband types for a DataChangeFilter
.
Constant
Description
QOpcUaMonitoringParameters.DataChangeFilter.DeadbandType.None
No deadband filtering.
QOpcUaMonitoringParameters.DataChangeFilter.DeadbandType.Absolute
A notification is generated if the absolute value of the difference between the last cached value and the current value is greater than the deadband value.
QOpcUaMonitoringParameters.DataChangeFilter.DeadbandType.Percent
Only valid for AnalogItems with an EURange property. A notification is generated if the absolute value of the difference between the last cached value and the current value is greater than value percent of the EURange.
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.deadbandType()#
- Return type:
Returns the deadband type.
See also
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.deadbandValue()#
- Return type:
double
Returns the deadband value.
See also
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.__eq__(rhs)#
- Parameters:
rhs –
PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter
- Return type:
bool
Returns true
if this data change filter has the same value as rhs
.
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.setDeadbandType(deadbandType)#
- Parameters:
deadbandType –
DeadbandType
Sets the deadband type to deadbandType
.
See also
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.setDeadbandValue(deadbandValue)#
- Parameters:
deadbandValue –
double
Sets the deadband value to deadbandValue
.
See also
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.setTrigger(trigger)#
- Parameters:
trigger –
DataChangeTrigger
Sets the trigger to trigger
.
See also
- PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.trigger()#
- Return type:
Returns the trigger.
See also