How do I pass the configuration name of Coreco drivers to VIDEOINPUT with Image Acquisition Toolbox 2.0 (R2006b)?
1 view (last 30 days)
Show older comments
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.
Accepted Answer
MathWorks Support Team
on 23 Jan 2010
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on National Instruments Frame Grabbers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!