| Data Acquisition Toolbox | Search  Help Desk |
Deleting the Device Object
When the data acquisition task is completed and the device object is no longer needed, it should be deleted to free the memory and other physical resources. You can delete a device object with the delete command.delete(ai);
delete function 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 object