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.

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:

connect(hdaClient)

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
Methods
Was this topic helpful?