User`s guide

delete
Purpose Remove image acquisition object from memory
Syntax delete(obj)
Description delete(obj) removes obj, an image acquisition object or array of
image acquisition objects, from memory. Use
delete to free m emory at
the end of an image acquisition session.
If
obj is an array of image acquisition objects and one of the objects
cannot be deleted, the
delete function deletes the objects that can be
deleted and returns a warning.
When
obj is deleted, it becomes invalid and cannot be reused. U se
the
clear command to remove invalid image acquisition objects from
the MATLAB workspace.
If multiple references to an image acquisition object exist in the
workspace, deleting the image acquisition object invalidates the
remainin g references. Use the
clear command t o delete the remaining
references to the object from the workspace.
If the image acquisition object
obj is running or being previewed, the
delete function stops the object and closes the preview window before
deleting it.
Examples vid = videoinput('win video', 1);
preview(vid);
delete(vid);
See Also imaqfind, isvalid, vid eoin put
12-4