Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Register Server VI

LabVIEW 2013 Datalogging and Supervisory Control Module Help

Edition Date: June 2013

Part Number: 371618J-01

»View Product Info
Download Help (Windows Only)

Owning Palette: OPC UA Server VIs

Requires: DSC Module or Real-Time Module

Registers the OPC UA server with the UA Local Discovery Server (LDS). After you enable the registration process, the OPC UA server routinely registers based on the register rate.

Details  Example

OPC UA server refnum in specifies the reference data value of the OPC UA server.
local discovery server certificate file specifies the file path of the certificate file that the LDS uses. The OPC UA server trusts this certificate file.
register rate specifies the rate, in minutes, at which the OPC UA server registers. The default is 10.
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.
error out contains error information. This output provides standard error out functionality.

Register Server Details

Using the Register Server VI requires the LDS. After you import the certificate file that the OPC UA server uses to the LDS and export the LDS certificate file to the computer, you must enter the file path of the LDS certificate file in the local discovery server certificate file input of the Register Server VI.

Refer to the OPC Foundation website at www.opcfoundation.org to download the LDS. Refer to the NI KnowledgeBase at ni.com/kb for information about how to make OPC UA servers and the LDS trust each other.

When you use the Register Server VI to register the OPC UA server, the status of the registered OPC UA server is either online or offline in the LDS. Whether the OPC UA client can connect to the registered OPC UA server depends on the status of this 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. The OPC UA client can connect to the registered 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. The OPC UA client cannot connect to the registered OPC UA server.

Example

Refer to the OPC UA Demo.lvproj in the labview\examples\comm\OPCUA directory for an example of using the Register Server VI.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit