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.

findNodeById (opcua)

Find nodes by namespace index and identifier

Syntax

FoundNode = findNodeById(NodeList,NsInd,Id)

Description

FoundNode = findNodeById(NodeList,NsInd,Id) searches the nodes in NodeList for a node whose NamespaceIndex and Identifier properties match NsInd and Id, respectively. NsInd must be an integer, and Id must be a character vector, string, or integer.

This function might query the server for further descendants (children) of NodeList.

Examples

Find the ServerCapabilities node (Index 0, Identifier 2268) of the OPC UA server on the local host.

UaClient = opcua('localhost',51210);
connect(UaClient);
capabilitiesNode = findNodeById(UaClient.Namespace,0,2268)
capabilitiesNode = 
OPC UA Node object:
                      Name: ServerCapabilities
               Description: Describes capabilities supported by the server.
            NamespaceIndex: 0
                Identifier: 2268
                  NodeType: Object

                    Parent: Server
                  Children: 14 nodes.

See Also

Functions

Introduced in R2015b

Was this topic helpful?