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.

isObjectType (opcua)

True for object nodes of OPC UA server

Syntax

tf = isObjectType(NodeObj)

Description

tf = isObjectType(NodeObj) returns true (logical 1) for nodes that are object type nodes, or false (logical 0) otherwise. You cannot read current and historical values from object type nodes. Object nodes are used to organize the server name space.

Examples

Identify some nodes and determine if they are object type nodes.

s = opcuaserverinfo('localhost');
UaClient = opcua(s);
connect(UaClient);
nodes = browseNamespace
nodes = 
1x2 OPC UA Node array:
    index     Name      NsInd  Identifier  NodeType  Children
    -----  -----------  -----  ----------  --------  --------
      1    DoubleValue  2      10226       Variable  0
      2    Scalar       2      10159       Object    29
isObjectType(nodes(1))
ans =
     0
isObjectType(nodes(2))
ans =
     1

Introduced in R2015b

Was this topic helpful?