Owning Palette: OPC UA Client VIs

Requires: OPC UA Toolkit

Gets the attributes of a node.

Example

OPC UA client refnum in specifies the reference for the OPC UA client.
node ID specifies the ID of the node. The format of the node ID is ns=<namespace index>;<identifier type>=<identifier>. A node ID contains the following components:
  • namespace index is a base 10 number that indicates the namespace of the node ID.
    Note If namespace index is 0, the format of the node ID can be <identifier type>=<identifier>. The namespace index for a node that you created with the OPC UA Toolkit is 2.
  • identifier type represents the type of the identifier and has the following values:
    ValueIdentifier Type
    iNumeric
    sString
    gGUID
    bOpaque
  • identifier is a string value that represents the name of the identifier.
The format of the node ID can also be ns=<namespace index>;<identifier type>=<identifier>@<index>:<index>. For example, ns=2;s=Folder.Array@1:2. This format only applies to the array data type and allows you to read a single element or a range of elements of an array. You cannot use @ in a node name. For backwards compatibility, node ID also accepts node paths as input for OPC UA servers only. You can regard the node path as the string type identifier of the node ID. For example, a node path can be Device.folder.item.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
timeout specifies the maximum time, in milliseconds, that this VI waits to get a response from the OPC UA server. The default is 5000.
OPC UA client refnum out returns the reference for the OPC UA client.
node attribute returns the attributes of the node.
name returns the name of the node.
node class returns the node class.
0Unspecified
1Object
2Variable
4Method
8Object Type
16Variable Type
32Reference Type
64Data Type
128View
data type returns the data type of the node.
Value Data Type
1 Boolean
2 SByte
3 Byte
4 Int16
5 UInt16
6 Int32
7 UInt32
8 Int64
9 UInt64
10 Float
11 Double
12 String
13 DateTime
15 ByteString
101 Array of Boolean
102 Array of SByte
103 Array of Byte
104 Array of Int16
105 Array of UInt16
106 Array of Int32
107 Array of UInt32
108 Array of Int64
109 Array of UInt64
110 Array of Float
111 Array of Double
112 Array of String
113 Array of DateTime
115 Array of ByteString
201 Matrix of Boolean
202 Matrix of SByte
203 Matrix of Byte
204 Matrix of Int16
205 Matrix of UInt16
206 Matrix of Int32
207 Matrix of UInt32
208 Matrix of Int64
209 Matrix of UInt64
210 Matrix of Float
211 Matrix of Double
212 Matrix of String
213 Matrix of DateTime
215 Matrix of ByteString
access returns the access level of the node.
Digital Display Access
0 Null
1 Read
2 Write
3 Read&Write
description returns the description of the node.
service status returns the status of an OPC UA service call. OPC UA services contain parameters that are conveyed between an OPC UA client and an OPC UA server.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the OPC UA Demo.lvproj in the labview\examples\Data Communication\OPCUA directory for an example of using the Get Node Attribute VI.