| Data Acquisition Toolbox | Search  Help Desk |
Deleting the Device Object
When the output task is completed and the device object is no longer needed, you should delete the device object to free memory and other physical resources. You can delete the analog output object with thedelete command.
delete(ao)
delete removes the device object from both the data acquisition engine and the MATLAB workspace. If this was the last object accessing the hardware, the associated hardware driver is closed and unloaded.
Note:
delete ao.