This is machine translation

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

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

opcuaserverinfo (opcua)

Query host for installed OPC UA servers


S = opcuaserverinfo('HostName')


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.


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

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

   Connection Information
    Hostname: 'HOST4421'
        Port: 51210

See Also



Introduced in R2015b

Was this topic helpful?