QOpcUaHistoryReadRawRequest#
This class stores the necessary information to request historic data from a server. More…
New in version 6.3.
Synopsis#
Functions#
def
addNodeToRead
(nodeToRead)def
endTimestamp
()def
nodesToRead
()def
numValuesPerNode
()def
__ne__
(rhs)def
returnBounds
()def
setEndTimestamp
(endTimestamp)def
setNodesToRead
(nodesToRead)def
setNumValuesPerNode
(numValuesPerNode)def
setReturnBounds
(returnBounds)def
setStartTimestamp
(startTimestamp)def
startTimestamp
()def
swap
(other)
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 is the Qt OPC UA representation for the OPC UA ReadRawModifiedDetails for reading historical data defined in OPC-UA part 11, 6.4.3 .
When requesting historic data from a server, several values need to be provided to the server to know which data to collect. The QOpcUaHistoryReadRawRequest
class provides the required values. startTimestamp
and endTimestamp
define the timerange where historic data should be collected from. nodesToRead
defines from which nodes historic data should be collected. numValuesPerNode
defines the maximum number of data values that should be returned per node. returnBounds
defines if the bounding values should be included in the result.
- class PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest#
PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest(nodesToRead, startTimestamp, endTimestamp[, numValuesPerNode=0[, returnBounds=false]])
PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest(other)
- Parameters:
startTimestamp –
PySide6.QtCore.QDateTime
nodesToRead –
endTimestamp –
PySide6.QtCore.QDateTime
numValuesPerNode – int
returnBounds – bool
Constructs an invalid QOpcUaHistoryReadRawRequest
.
Constructs a QOpcUaHistoryReadRawRequest
item with the given values.
Constructs a QOpcUaHistoryReadRawRequest
item from other
.
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.addNodeToRead(nodeToRead)#
- Parameters:
nodeToRead –
PySide6.QtOpcUa.QOpcUaReadItem
Adds a node to the nodeToRead
list.
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.endTimestamp()#
- Return type:
Returns the end time stamp.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.nodesToRead()#
Returns the list of nodes to read.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.numValuesPerNode()#
- Return type:
int
Returns the number of values per node.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.__ne__(rhs)#
- Parameters:
- Return type:
bool
Returns true
if lhs
is not equal to rhs
; otherwise returns false
.
Two QOpcUaHistoryReadRawRequest
items are considered not equal if their startTimestamp
, endTimestamp
, numValuesPerNode
, returnBounds
or nodesToRead
are not equal.
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.returnBounds()#
- Return type:
bool
Returns if the return bounds should be requested.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.setEndTimestamp(endTimestamp)#
- Parameters:
endTimestamp –
PySide6.QtCore.QDateTime
Sets endTimestamp
for the historical data to be fetched.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.setNodesToRead(nodesToRead)#
- Parameters:
nodesToRead –
Sets the nodesToRead
list.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.setNumValuesPerNode(numValuesPerNode)#
- Parameters:
numValuesPerNode – int
Sets numValuesPerNode
to indicate the number of values per node to be fetched.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.setReturnBounds(returnBounds)#
- Parameters:
returnBounds – bool
Sets returnBounds
to indicate if the return bounds should be requested.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.setStartTimestamp(startTimestamp)#
- Parameters:
startTimestamp –
PySide6.QtCore.QDateTime
Sets startTimestamp
for the historical data to be fetched.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.startTimestamp()#
- Return type:
Returns the start time stamp.
See also
- PySide6.QtOpcUa.QOpcUaHistoryReadRawRequest.swap(other)#
- Parameters:
Swaps this request instance with other
. This function is very fast and never fails.