opcda
(To be removed) Create OPC data access object
Support for the OPC Data Access (DA) standard will be removed in a future release. Instead use OPC Unified Architecture (UA). See Version History.
Description
creates an OPC data access object, DAobj
= opcda(HostID
,ServerID
)DAobj
, for the host specified by
Host
and the OPC server ID specified by ServerID
.
When you create DAobj
, its initial Status
property
value is 'disconnected'
. To communicate with the server, you must connect
DAobj
to the server with the connect
function.
creates an OPC DA object, DAobj
= opcda(HostID
,ServerID
,Name,Value
)DAobj
, for the host specified by
Host
and the OPC server ID specified by ServerID
,
applying the specified property values. If you specify an invalid property name or value,
the function does not create an object.
For a complete listing of OPC functions and properties, type opchelp
.