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.

isVariableType (opcua)

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

Introduced in R2015b

Was this topic helpful?