DataChangeFilter#

Defines a DataChangeFilter for a monitored item. More

Synopsis#

Functions#

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:

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:

DeadbandType

Returns the deadband type.

PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.deadbandValue()#
Return type:

float

Returns the deadband value.

PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.__eq__(rhs)#
Parameters:

rhsPySide6.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:

deadbandTypeDeadbandType

Sets the deadband type to deadbandType.

See also

deadbandType()

PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.setDeadbandValue(deadbandValue)#
Parameters:

deadbandValue – float

Sets the deadband value to deadbandValue.

See also

deadbandValue()

PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.setTrigger(trigger)#
Parameters:

triggerDataChangeTrigger

Sets the trigger to trigger.

See also

trigger()

PySide6.QtOpcUa.QOpcUaMonitoringParameters.DataChangeFilter.trigger()#
Return type:

DataChangeTrigger

Returns the trigger.

See also

setTrigger()