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

Disconnect and delete all OPC HDA client objects




opc.hda.reset disconnects and deletes all OPC HDA Client objects. Note that all objects, including those in private work spaces, will be disconnected and deleted when calling this function.

You cannot reconnect an OPC HDA Client object to the server after it has been deleted. Therefore, you should remove it from the workspace with the clear function.

Note that opc.hda.reset has no influence over OPC Data Access objects. Delete those objects using opcreset.


Create an OPC HDA Client, delete the object using opc.hda.reset, and clear the variable from the workspace:

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

See Also

| |

Introduced in R2011a