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.


Package: opc.hda

True if HDA Client is connected to server




isConnected(hdaObj) returns true if the OPC HDA Client object hdaObj is connected to an OPC HDA server, and false otherwise.

If hdaObj is an array, isConnected returns an array the same size as hdaObj, containing true where that respective element of hdaObj is connected to a server and false otherwise.


Create an HDA client for the Matrikon™ Simulation Server and connect to the server:

hdaObj = opchda('localhost', 'Matrikon.OPC.Simulation');

Check the status of the connection:

tf = isConnected(hdaObj)

Introduced in R2011a