readHistory
Read historical data from nodes on OPC UA server
Syntax
Description
reads stored historical data from the nodes identified by uaData
= readHistory(uaClient
,nodeList
,startTime,endTime
)nodeList
, on
the server associated with the connected client UaClient
,with a source
timestamp between startTime
(inclusive) and endTime
(exclusive).nodeList
is a single OPC UA node object or an array of
nodes. startTime
and endTime
can be MATLAB datetime
values or date numbers.
allows you to specify that returned data should include bounding values. Bounding values are
the values immediately outside the time range requested (the first value just before
uaData
= readHistory(uaClient
,nodeList
,startTime,endTime
,returnBounds
)startTime
, or the first value after endTime
) when a
value does not exist exactly on the specified limit of the time range. Setting
returnBounds
to true
returns bounding values;
setting returnBounds
to false
(the default) returns
values strictly within the specified start and end times.
and uaData
= readHistory(nodeList
,startTime,endTime
)
read from the nodes identified by uaData
=
readHistory(nodeList
,startTime,endTime
,returnBounds
)nodeList
. All nodes must be of the same
connected client.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015b