Main Content

opc.hda.reset

Disconnect and delete all OPC HDA client objects

Description

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 once the function deletes the object. You must remove it from the workspace using the clear function.

example

Examples

collapse all

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');
opc.hda.reset;
clear hdaObj

Version History

Introduced in R2011a

See Also

Functions