Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

opcuaserverinfo (opcua)

Query host for installed OPC UA servers

Syntax

S = opcuaserverinfo('HostName')

Description

S = opcuaserverinfo('HostName') queries the host named HostName for its installed OPC UA servers. HostName can be a host name, or IP address, specified as a character vector or string.

S is returned as an OPC UA ServerInfo object, or an array of these objects, containing the read-only properties Description, Hostname, and Port.

Use the opcua function to construct an OPC UA Client object directly from an OPC UA ServerInfo object.

Examples

This example shows how to find all available servers on the local host.

localServers = opcuaserverinfo('localhost');
localServers(1)
OPC UA ServerInfo 'UA Sample Server':

   Connection Information
    Hostname: 'HOST4421'
        Port: 51210

See Also

Functions

Classes

Introduced in R2015b

Was this topic helpful?