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.

Set Client Properties

You can modify many properties specific to the created client. These include Timeout, UserData, Host (before connection), and ServerID (before connection). Modify these properties as you would any other field of a MATLAB® structure.

Set the Timeout Property

As OPC transactions often occur across networks, you might encounter cases where calls to those servers take some time to return. To change the function timeout of the OPC HDA client object, assign a new value to its Timeout property:

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

             Status: connected

         Aggregates: 6 Aggregate Types
     ItemAttributes: 10 Item Attributes
Methods
Was this topic helpful?