MATLAB: How to pass the configuration name of Coreco drivers to VIDEOINPUT with Image Acquisition Toolbox 2.0 (R2006b)

configurationcorecoImage Acquisition Toolbox

I would like to know how to pass the configuration name or file of Coreco drivers to the VIDEOINPUT command. I am currently using the following MATLAB code:
File='mycam_8bit_flash_off.txt';
vid= videoinput('Coreco',1,File);
start(vid);
[data time abstime]=getdata(vid,1);
The file "mycam_8bit_flash_off.txt" is the camera file which defines a configuration with the name "AAA_mycam_8bit_flash_off".
This used to work in Image Acquisition Toolbox 1.9 (R2006a) but fails with the following error message in Image Acquisition Toolbox 2.0 (R2006b).
GETDATA timed out before frames were available.

Best Answer

The correct way to load a configuration for Coreco drivers is to use either the configuration name in the creation of the video input object or to use the same name for both the configuration name and the file name.
In this case, the camera file should be renamed from "mycam_8bit_flash_off.txt" to "AAA_mycam_8bit_flash_off.txt" and then use this file name in the call to VIDEOINPUT. The other option is to simply specify the configuration name to create the video input object as in the following MATLAB code.
video input('coreco',1,'AAA_mycam_8bit_flash_off')
Even though specifying a file name which was not the same as the configuration name was not the correct way to load a configuration for Coreco drivers, this worked in Image Acquisition Toolbox 1.9 (R2006a). This behavior has been corrected.