QOpcUaHistoryData#
This class stores historical data values from a node. More…
New in version 6.3.
Synopsis#
Functions#
def
addValue
(value)def
count
()def
nodeId
()def
result
()def
setNodeId
(nodeId)def
setStatusCode
(statusCode)def
statusCode
()def
swap
(other)
Detailed Description#
When a request to read history data is being handled, instances of this class are used to store information about which node has been read, its values and the status code. The finished signal of a history read request will return a list of QOpcUaHistoryData
objects which can be parsed to review the results of the request.
- class PySide6.QtOpcUa.QOpcUaHistoryData#
PySide6.QtOpcUa.QOpcUaHistoryData(other)
PySide6.QtOpcUa.QOpcUaHistoryData(nodeId)
- Parameters
nodeId – str
Constructs an invalid history data item.
Constructs a history data item from other
.
Constructs a history data item and stores which node it corresponds to.
- PySide6.QtOpcUa.QOpcUaHistoryData.addValue(value)#
- Parameters
value –
PySide6.QtOpcUa.QOpcUaDataValue
Adds a data value object given by value
.
- PySide6.QtOpcUa.QOpcUaHistoryData.count()#
- Return type
int
Returns the number of available data value objects.
- PySide6.QtOpcUa.QOpcUaHistoryData.nodeId()#
- Return type
str
Returns the nodeId of the node whose data has been stored.
See also
- PySide6.QtOpcUa.QOpcUaHistoryData.result()#
- Return type
Returns the list of data value objects which contain the results of the history read request.
- PySide6.QtOpcUa.QOpcUaHistoryData.setNodeId(nodeId)#
- Parameters
nodeId – str
Sets the nodeId
to nodeId
.
See also
- PySide6.QtOpcUa.QOpcUaHistoryData.setStatusCode(statusCode)#
- Parameters
statusCode –
UaStatusCode
Sets the status code to statusCode
.
See also
- PySide6.QtOpcUa.QOpcUaHistoryData.statusCode()#
- Return type
Returns the status code which indicates if an error occurred while fetching the history data.
See also
- PySide6.QtOpcUa.QOpcUaHistoryData.swap(other)#
- Parameters
Swaps this data value instance with other
. This function is very fast and never fails.