This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Server Connection and Browsing

Connect to OPC servers and browse their name spaces


expand all

opcfindFind OPC Toolbox objects with specific properties
opcdaConstruct OPC data access object
opchdaCreate OPC historical data access client
opcua (opcua)Construct OPC UA client object
opcuanode (opcua)Construct OPC UA node objects
connectConnect OPC Toolbox client to server
isConnectedTrue if HDA Client is connected to server
disconnectDisconnect OPC Toolbox client from server
propinfoProperty information for OPC Toolbox objects
obj2mfileConvert OPC Toolbox object to MATLAB code
opcresetDisconnect and delete all OPC Toolbox objects
opc.hda.resetDisconnect and delete all OPC HDA client objects
getnamespace (opcda)OPC data access server name space
getNameSpace (opchda)OPC historical data access server name space
getNamespace (opcua)Namespace of server associated with client
browsenamespace (opcda)Graphically browse OPC DA server name space
browseNameSpace (opchda)Graphically browse OPC HDA server name space
browseNamespace (opcua)Graphically browse name space and select nodes from server
flatnamespaceFlatten hierarchical OPC name space
serveritemsQuery server or name space for fully qualified item IDs
opcserverinfoVersion, server, and status information
opchdaserverinfoQuery host for installed HDA servers
opcuaserverinfo (opcua)Query host for installed OPC UA servers
findDescription Locate OPC HDA servers with particular description
readItemAttributesRead item attribute values from OPC HDA server
serveritempropsProperty information for items in OPC server name space
getDescription Get description of OPC HDA aggregate type or item attribute
getIDFromNameTranslate OPC HDA aggregate type or item attribute name to numeric identifier
getIDListGet all aggregate type or item attribute IDs
getNameListGet all aggregate type or item attribute names
copyobjMake copy of OPC data access object
deleteRemove OPC Toolbox objects from memory
isvalidTrue for undeleted OPC Toolbox objects
saveSave OPC Toolbox objects to MAT-file
loadLoad OPC Toolbox objects from MAT-file
dispSummary of information for OPC Toolbox objects
getOPC Toolbox object properties
setConfigure or display OPC Toolbox object properties
opchelpHelp for OPC Toolbox data access function or property


OPC Data Access ExplorerExplore and exchange data with OPC Data Access servers


expand all

GroupData Access Group objects contained by client
NameDescriptive name for OPC Toolbox object
TagLabel to associate with OPC Toolbox object
TypeOPC Toolbox object type
UserDataData to associate with OPC Toolbox object
HostDNS name or IP address of server
ServerIDServer identity
StatusStatus of connection to OPC server
TimeoutMaximum time to wait for completion of instruction to server


OPC Data Access (DA)

Connect to OPC Data Access Servers

Describes how to create OPC Toolbox™ Data Access client objects and connect to OPC servers.

OPC DA Server Item Properties

DA server properties defined by the OPC Foundation.

OPC Historical Data Access (HDA)

OPC Toolbox HDA Objects

OPC Toolbox uses MATLAB objects to implement OPC HDA client functionality.

Create an OPC HDA Client Object

After determining the host name and server ID of the OPC server you want to connect to, you can create an OPC HDA client object.

Connect to the OPC HDA Server

OPC HDA client objects are not automatically connected to the server when they are created.

Set Client Properties

You can modify many properties specific to the created client.

Read Item Attributes

Each item that you find on a server might have a given set of item attributes associated with it.

OPC Unified Architecture (UA)

OPC UA Components

Description of OPC UA components and their interactions.

Featured Examples

Was this topic helpful?