Disconnect and delete all OPC HDA client objects
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'); opc.hda.reset; clear hdaObj