getNamespace
Namespace of OPC UA server associated with client
Syntax
Description
retrieves one layer of the namespace of the server associated with client object
nodes
= getNamespace(uaClient
)uaClient
. The namespace is stored in the Namespace
property of uaClient
as a hierarchical tree of nodes.
retrieves only the nodes referenced from nodes
= getNamespace(uaClient
,browseNode
)browseNode
, and stores them in
the Children
property of browseNode
. If the
browseNode
argument is empty or omitted, the first layer of the
namespace is retrieved and stored in the client.
getNamespace
might not need to retrieve nodes from the server. If the
nodes already exist locally, they are returned automatically.
forces retrieval of the nodes
= getNamespace(___,'-force')Children
property contents from the server again
and stores them in browseNode
, even if the nodes already exist
locally.
Note
When retrieving a namespace with many children, you should allow a significant amount of time for this function to complete, especially when displaying the results in the MATLAB® command window. For example, retrieving a namespace with several thousand children could take up to a minute or more.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015b