readAtTime
Read data from an OPC HDA server at specified times
Syntax
Description
reads data from the items defined by DObj
= readAtTime(HdaClient
,ItmList
,TimeStamps
)ItmList
, from the OPC HDA Server
associated with client object HdaClient
, at the time stamps specified by
TimeStamps
.
When no value exists for a specified timestamp, the server will interpolate a value from
the surrounding values to represent the value at that timestamp, and the
Quality
for that timestamp will include the
Interpolated
bit.
[
returns the ItmList
,Value
,Quality
,TimeStamp
]
= readAtTime(HdaClient
,ItmList
,TimeStamps
,DataType
)Value
in the specified DataType
along with
the corresponding item ID, quality ID and
timestamp.
returns a structure containing the fields S
= readAtTime(HdaClient
,ItmList
,TimeStamps
,'struct')ItemID
,
Value
, Quality
and
TimeStamp
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015b