Owning Palette: OPC UA Server VIs

Requires: OPC UA Toolkit

Adds a property to an item.

After you start an OPC UA server, you cannot add properties until the OPC UA server stops. Use the Stop VI to stop an OPC UA server.

Example

historical access specifies whether the item supports historical access and the size of the history data queue.
enable specifies whether the item supports historical access. The default is FALSE, which specifies that this item does not support historical access.
queue size specifies the size of the queue of history data. The default is 1000.
OPC UA server refnum in specifies the reference data value of the OPC UA server.
item node ID specifies the ID of the parent node. The parent node must be an item.
property specifies the information about the property.
name specifies the name of the property. If a property with the same name already exists in the parent item, this VI returns an error.
data type specifies the data type of the property.
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 level specifies whether you can read or write to the property.
Value Access Level
1 read-only
2 write-only
3 read/write
description specifies a free-form text string that you enter to describe this property.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
OPC UA server refnum out returns the reference data value of the OPC UA server.
property node ID returns the ID of the property node that this VI adds.
OPC UA variable node refnum out returns the reference to the variable node.
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 Add Property VI.