isVariableType
True for variable nodes of OPC UA server
Syntax
tf = isVariableType(NodeObj)
Description
tf = isVariableType(NodeObj)
returns true
(logical 1) for nodes that are variable type nodes, or false (logical 0) otherwise.
You can write values, and read current and historical values from variable type
nodes.
Examples
Identify some node and determine if they are variable type nodes.
s = opcuaserverinfo('localhost');
UaClient = opcua(s);
connect(UaClient);
nodes = browseNamespace(UaClient)
nodes = 1x2 OPC UA Node array: index Name NsInd Identifier NodeType Children ----- ----------- ----- ---------- -------- -------- 1 DoubleValue 2 10226 Variable 0 2 Scalar 2 10159 Object 29
isVariableType(nodes(1))
ans = 1
isVariableType(nodes(2))
ans = 0
Version History
Introduced in R2015b