Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Server Connection and Browsing

Connect to OPC servers and browse their name spaces

Functions

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
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

Apps

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

Properties

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

Examples and How To

Connect to OPC Data Access Servers

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

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.

Concepts

OPC DA Server Item Properties

DA server properties defined by the OPC Foundation.

OPC Toolbox HDA Objects

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

OPC UA Components

Description of OPC UA components and their interactions.

Related Information

Was this topic helpful?