Main Content

isObjectType

True for object nodes of OPC UA server

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 name space.

example

Examples

collapse all

Create an OPC UA client ans 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 logical value or array of logical values. A value of true (1) indicates that the node is of object type.

Version History

Introduced in R2015b

See Also

Functions