- class QOpcUaHistoryReadRawRequest¶
This class stores the necessary information to request historic data from a server. More…
Added in version 6.3.
Synopsis¶
Methods¶
def
__init__()
def
addNodeToRead()
def
endTimestamp()
def
nodesToRead()
def
__ne__()
def
returnBounds()
def
setNodesToRead()
def
startTimestamp()
def
swap()
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 1.04 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
andendTimestamp
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.- __init__()¶
Constructs an invalid
QOpcUaHistoryReadRawRequest
.- __init__(other)
- Parameters:
other –
QOpcUaHistoryReadRawRequest
Constructs a
QOpcUaHistoryReadRawRequest
item fromother
.- __init__(nodesToRead, startTimestamp, endTimestamp, timestampsToReturn)
- Parameters:
nodesToRead – .list of QOpcUaReadItem
startTimestamp –
QDateTime
endTimestamp –
QDateTime
timestampsToReturn –
TimestampsToReturn
Constructs a
QOpcUaHistoryReadRawRequest
item with the given values. ThetimestampsToReturn
parameter determines the timestamps to return for each value.- __init__(nodesToRead, startTimestamp, endTimestamp[, numValuesPerNode=0[, returnBounds=false]])
Constructs a
QOpcUaHistoryReadRawRequest
item with the given values.- addNodeToRead(nodeToRead)¶
- Parameters:
nodeToRead –
QOpcUaReadItem
Adds a node to the
nodeToRead
list.Returns the end time stamp.
See also
- nodesToRead()¶
- Return type:
.list of QOpcUaReadItem
Returns the list of nodes to read.
See also
- numValuesPerNode()¶
- Return type:
int
Returns the number of values per node.
See also
- __ne__(rhs)¶
- Parameters:
- Return type:
bool
Returns
true
iflhs
is not equal torhs
; otherwise returnsfalse
.Two
QOpcUaHistoryReadRawRequest
items are considered not equal if theirstartTimestamp
,endTimestamp
,numValuesPerNode
,returnBounds
ornodesToRead
are not equal.- returnBounds()¶
- Return type:
bool
Returns if the return bounds should be requested.
See also
Sets
endTimestamp
for the historical data to be fetched.See also
- setNodesToRead(nodesToRead)¶
- Parameters:
nodesToRead – .list of QOpcUaReadItem
Sets the
nodesToRead
list.See also
- setNumValuesPerNode(numValuesPerNode)¶
- Parameters:
numValuesPerNode – int
Sets
numValuesPerNode
to indicate the number of values per node to be fetched.See also
- setReturnBounds(returnBounds)¶
- Parameters:
returnBounds – bool
Sets
returnBounds
to indicate if the return bounds should be requested.See also
Sets
startTimestamp
for the historical data to be fetched.See also
- setTimestampsToReturn(timestampsToReturn)¶
- Parameters:
timestampsToReturn –
TimestampsToReturn
Sets the selected timestamps to return for each value to
timestampsToReturn
.See also
Returns the start time stamp.
See also
- swap(other)¶
- Parameters:
other –
QOpcUaHistoryReadRawRequest
Swaps this request instance with
other
. This function is very fast and never fails.- timestampsToReturn()¶
- Return type:
Returns the selected timestamps to return for each value.
See also