class DataChangeFilter#

Defines a DataChangeFilter for a monitored item. More

Synopsis#

Methods#

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 type none and deadbandValue 0.

__init__(trigger, deadbandType, deadbandValue)
Parameters:
  • triggerDataChangeTrigger

  • deadbandTypeDeadbandType

  • deadbandValue – float

Constructs a data change filter with trigger trigger, deadband type deadbandType and deadband value deadbandValue.

__init__(arg__1)
Parameters:

arg__1DataChangeFilter

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:

rhsDataChangeFilter

Return type:

bool

Returns true if this data change filter has the same value as rhs.

setDeadbandType(deadbandType)#
Parameters:

deadbandTypeDeadbandType

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:

triggerDataChangeTrigger

Sets the trigger to trigger.

See also

trigger()

trigger()#
Return type:

DataChangeTrigger

Returns the trigger.

See also

setTrigger()