opchda
Create OPC historical data access client
Syntax
Description
constructs an OPC HDA client object, hdaObj
= opchda(serverInfoObj
)hdaObj
, for the information provided
in the OPC HDA ServerInfo
object, serverInfoObj
,
obtained from an opchdaserverinfo
function call.
constructs hdaObj
= opchda(hostName
,serverID
)hdaObj
for the host specified by hostName
and the OPC server ID specified by serverID
.
When you construct hdaObj
, its initial Status
property value is 'disconnected'
. To communicate with the server, connect
hdaObj
to the server using the connect
function.
applies the specified property values to the client created with the hdaObj
= opchda(hostName
,serverID
,Name=Value
)Host
and ServerID
parameters. If you specify an invalid property name or
value, the function does not create an object.
applies the specified property values to the client created with the
hdaObj
= opchda(serverInfoObj
,Name=Value
)ServerInfo
object, serverInfoObj
. If you specify an
invalid property name or value, the function does not create an object.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2013a