LabVIEW OPC UA Toolkit API Reference

Content Type
Programming Language
Current manual

Register Server VI

Register Server VI

Owning Palette: OPC UA Server VIs

Requires: OPC UA Toolkit

Registers an OPC UA server with the UA Local Discovery Server (LDS). This VI routinely registers the OPC UA server based on register rate.

Details  

OPC UA server refnum in specifies the reference data value of the OPC UA server.
local discovery server certificate file specifies the path of the certificate file that the UA Local Discovery Server (LDS) uses.
register rate specifies the rate, in minutes, at which this VI registers the OPC UA server. The default is 10.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
local discovery server URL specifies the URL of the UA Local Discovery Server (LDS) on the local MulticastSubnet. The default is opc.tcp://localhost:4840. Refer to the OPC UA specification for more information about the LDS.
OPC UA server refnum out returns the reference data value of the OPC UA server.
error out contains error information. This output provides standard error out functionality.

Register Server Details

Before you use the Register Server VI, you must install the UA Local Discovery Server (LDS) and make the OPC UA server and the LDS trust each other. Refer to the OPC Foundation website at www.opcfoundation.org to download the LDS. Visit ni.com/info and enter the Info Code ex9fm6 to access the How Do I Make an OPC UA Server and the UA Local Discovery Server Trust Each Other? NI support document, for information about making OPC UA servers and the LDS trust each other.

When you use the Register Server VI to register an OPC UA server, the status of the registered OPC UA server in the LDS is either online or offline. Whether the OPC UA client can connect to the registered OPC UA server depends on the status of the OPC UA server. You can use the Start VI and Stop VI to change the status of the registered OPC UA server.

The following table lists the status of the registered OPC UA server in the LDS.

Registered OPC UA Server Status Description Effects on the OPC UA Client
Online The registered OPC UA server is running. The OPC UA client can find the name and endpoint URL of the registered OPC UA server in the LDS and connect to the OPC UA server.
Offline The registered OPC UA server is not running. The OPC UA client can find the name of the registered OPC UA server in the LDS. However, the OPC UA client cannot connect to the OPC UA server.
Was this information helpful?

Previous

Read

Next

Start

Previous

Read

Next

Start