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. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Version, server, and status information


Out = opcserverinfo
Out = opcserverinfo('Host')
Out = opcserverinfo(DAObj)


Out = opcserverinfo returns a structure, Out, that contains information about OPC Toolbox™ and MATLAB® software, including product version numbers.

Out = opcserverinfo('Host') returns a structure, Out, that contains OPC server information associated with the host name or IP address specified by Host. The information includes the ServerID you can use to create a client associated with that server, and other information about each server.

Out = opcserverinfo(DAObj) returns a structure, Out, that contains information about the server associated with the opcda object DAObj. DAObj must be a scalar, and must be connected to the server. The information includes the current server status, as well as time information related to the server.


Retrieve information about servers installed on the local machine:


Retrieve information about the Matrikon™ Simulation Server installed on the local host:

da = opcda('localhost', 'Matrikon.OPC.Simulation');
matrikonInfo = opcserverinfo(da)

See Also


Introduced before R2006a