getnamespace
(To be removed) OPC DA server name space
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
S = getnamespace(DAObj)
returns the
entire name space of the server associated with the data access
(opcda
) object specified by DAObj
.
S
is a recursive structure array representing the name
space of the server. Each element of S
is a node in the name
space. S
contains the fields:
Name
— a descriptive nameFullyQualifiedID
— the fully qualifiedItemID
of that nodeNodeType
— defines the node as a'branch'
node (containing other nodes) or'leaf'
node (containing no other nodes)Nodes
— a structure array with the same fields asS
, representing the nodes contained in this branch of the name space.
Use flatnamespace
to flatten the hierarchical name
space.
S = getnamespace(DAObj,'Filter1',Val1,'Filter2',Val2,
...)
allows you to filter the retrieved name space based on a number of
available browse filters. Available filters are described in the table in Browse
Filters.
Examples
Tips
BrowseFilter | Description |
---|---|
| Specify the |
| Specify the depth of the name space that you want
returned. A |
| Restricts the search to leaf nodes with particular
access right characteristics. Specify
|
| Restricts the search to nodes with a particular
canonical data type. Valid data types are
|