LabVIEW OPC UA Toolkit API Reference

Content Type
Programming Language
Current manual

History Data Update VI

History Data Update VI

Owning Palette: Historical Access VIs

Requires: OPC UA Toolkit

Updates history data at a specific timestamp.

Example

update type specifies the type of update operation this VI performs.

1Insert—Inserts new entries into the history database at the specified timestamps.
2Replace—Replaces existing entries in the history database at the specified timestamps.
3Update (default)—Inserts new entries or replaces existing entries in the history database at the specified timestamps.
OPC UA server refnum in specifies the reference data value of the OPC UA server.
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.
    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. 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.
update values specifies the value to update with, the timestamp of the data to replace, and the status code.
value specifies the value that this VI uses to update with.
timestamp specifies the timestamp at which this VI updates history data.
node status specifies the status code of the node.
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.
operation status returns the status of the operation.
status returns the status code.
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 History Data Update VI.

In This Section
Was this information helpful?