Main Content

isObjectType

Determine if nodes are object type

Description

objectType = 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 namespace.

example

Examples

collapse all

Create an OPC UA client and connect it to the server.

uaClient = opcua("opc.tcp://localhost:53530/OPCUA/SimulationServer");
connect(uaClient);

Select nodes from the server namespace.

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

Determine if the selected nodes are of object type.

isObjectType(nodes)
ans =

  1x2 logical array

   0   1

Input Arguments

collapse all

OPC UA nodes, specified as an array of node objects.

Example: nodeObj = opcuanode()

Output Arguments

collapse all

Indication that node is object type, returned as a numeric or logical 1 (true) or 0 (false) or vector of logical values. A value of true or 1 indicates that the node is of object type.

Version History

Introduced in R2015b