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.

Connect to the OPC HDA Server

OPC HDA client objects are not automatically connected to the server when they are created. You can see this from the 'Status' property of the client object.

Use the connect function to connect an OPC HDA client object to the server at the command line:


When connected, a client’s properties update to show certain server properties:

>> hdaClient
hdaClient = 
OPC HDA Client localhost/Matrikon.OPC.Simulation.1:
               Host: localhost
           ServerID: Matrikon.OPC.Simulation.1
            Timeout: 10 seconds

             Status: connected

         Aggregates: 6 Aggregate Types
     ItemAttributes: 10 Item Attributes