isObjectType
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
Version History
Introduced in R2015b