I was using the MATLAB r2011b and intended to request the resource from the camera. The camera was well set up.
Problem description:
> Out = imaqhwinfo
Out =
Installedadaptors: {'matrox' 'winvideo '}
MATLAB version: '7. 13 (r2011b )'
Toolboxname: 'image acquisition toolbox'
Toolboxversion: '4.2 (r2011b )'
> Source. Vid = videoinput ('winvideo', 1, 'yuy2 _ 320x240 ');
Error Using videoinput (line 228)
There are no devices installed for the specified adaptorname. See imaqhwinfo.
Solution:
> Imaqreset
> Vid = videoinput ('winvideo', 1, 'yuy2 _ 320x240 ');
> Help imaqreset
Imaqreset disconnect and delete all image acquisition objects.
Imaqreset deletes any image acquisition objects existing in
Memory as well as unloads all adaptors loaded by the toolbox.
A result, the image acquisition hardware is reset.
Imaqreset is the image acquisition command that returns MATLAB
The known state of having no image acquisition objects and no
Loaded image acquisition adaptors.
Imaqreset will also force the toolbox to search for new hardware
That may have been installed while MATLAB was running.
Imaqreset shocould not be called from any of the callbacks of
Videoinput object such as the startfcn or framesacquiredfcn.
See also imaqhelp, imaqdevice/Delete.
Reference page in help Browser
Doc imaqreset