- class DataChangeFilter#
Defines a
DataChangeFilter
for a monitored item. More…Synopsis#
Methods#
def
__init__()
def
deadbandType()
def
deadbandValue()
def
__eq__()
def
setTrigger()
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 1.05 part 4, 7.22.2.
- class 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.
- class 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.
- __init__()#
Constructs a data change filter with trigger on
status
, deadband typenone
anddeadbandValue
0
.- __init__(trigger, deadbandType, deadbandValue)
- Parameters:
trigger –
DataChangeTrigger
deadbandType –
DeadbandType
deadbandValue – float
Constructs a data change filter with trigger
trigger
, deadband typedeadbandType
and deadband valuedeadbandValue
.- __init__(arg__1)
- Parameters:
arg__1 –
DataChangeFilter
Constructs a data change filter from
rhs
.- deadbandType()#
- Return type:
DeadbandType
Returns the deadband type.
See also
setDeadbandType()
- deadbandValue()#
- Return type:
float
Returns the deadband value.
See also
setDeadbandValue()
- __eq__(rhs)#
- Parameters:
rhs –
DataChangeFilter
- Return type:
bool
Returns
true
if this data change filter has the same value asrhs
.- setDeadbandType(deadbandType)#
- Parameters:
deadbandType –
DeadbandType
Sets the deadband type to
deadbandType
.See also
deadbandType()
- setDeadbandValue(deadbandValue)#
- Parameters:
deadbandValue – float
Sets the deadband value to
deadbandValue
.See also
deadbandValue()
- setTrigger(trigger)#
- Parameters:
trigger –
DataChangeTrigger
Sets the trigger to
trigger
.See also
trigger()
- trigger()#
- Return type:
DataChangeTrigger
Returns the trigger.
See also
setTrigger()