| Data Acquisition Toolbox | Search  Help Desk |
Termination
When your data acquisition tasks are complete, the device object(s) should be deleted to free memory and other physical resources. You can use thedelete function to delete a device object.
delete(AI);
delete function removes the specified device object from the engine and the MATLAB workspace. If this was the last object accessing the associated hardware, the associated hardware driver and hardware driver adaptor are closed and unloaded. You can only delete an object if it is not running.