Create VI

LabVIEW 2018 OPC UA Toolkit Help


Edition Date: March 2018
Part Number: 376230B-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2017 OPC UA Toolkit Help
LabVIEW 2018 OPC UA Toolkit Help
LabVIEW 2019 OPC UA Toolkit Help

Owning Palette: OPC UA Server VIs

Requires: OPC UA Toolkit

Creates and initializes an OPC UA server.

When you use the Connect VI to connect an OPC UA client to an OPC UA server and set the message mode as None, the OPC UA client and OPC UA server do not need to trust each other.

Example

trust all clients specifies whether the OPC UA server trusts all OPC UA clients without adding the trusted client certificates to the OPC UA server. The default is FALSE, which specifies that the OPC UA server trusts only OPC UA clients that have trusted OPC UA client certificates added to the OPC UA server. You can use the Add Trusted Clients VI to add trusted OPC UA client certificates to an OPC UA server.
OPC UA server name specifies the name of the OPC UA server.
TCP port specifies the TCP port that the OPC UA server takes. The default is 49580. If the port that you specify is occupied, this VI is unable to create an OPC UA server. You can create multiple OPC UA servers on the same target with different ports.
supported security policies specifies the supported message modes and corresponding security policies. The default is None, which means the OPC UA client can connect without security. Use the Connect VI to determine which supported security policy to use when connecting the OPC UA client to the OPC UA server.
None specifies that the OPC UA server supports no security. The OPC UA client can connect without security.
Sign with Basic128Rsa15 specifies that the OPC UA server supports signing messages using the Basic128Rsa15 security policy.
Sign and Encrypt with Basic128Rsa15 specifies that the OPC UA server supports signing and encrypting messages using the Basic128Rsa15 security policy.
Sign with Basic256 specifies that the OPC UA server supports signing messages using the Basic256 security policy.
Sign and Encrypt with Basic256 specifies that the OPC UA server supports signing and encrypting messages using the Basic256 security policy.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
server certificate file specifies the path or name of the public key. You must name the public key and private key as the same and keep them in the same folder. If you do not specify the certificate file path, this VI generates and uses the default certificate. If you specify your own certificate, this VI uses and trusts your certificate. The OPC UA server always trusts the certificate that the OPC UA server is using.

You can specify a relative path or filename for server certificate file. If you specify a relative path, the path is relative to the caller VI or to the application directory. If you specify a filename, LabVIEW searches the certificate file only in the location where the caller VI resides or in the application directory.
OPC UA server refnum out returns the reference data value of the OPC UA server.
server endpoint URL returns the unique identifier of the 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 Create VI.

WAS THIS ARTICLE HELPFUL?

Not Helpful