roberts
January 12, 2010, 15:15:14
Hello,
I'm using DFx21AUC03 camera and MS Visual Studio 2005.The purpose of my application is setting all camera supported properties (video format, fps, white balance, gain,etc.) from command line. Here is my test scenario. First I run my application and set various properties to some new values. Then I exit my application and run IC Capture 2.1 application. All properties except video format and fps are updated to those new, previously set values from my application. If I change video format and fps properties from the IC Capture application, those values are preserved when I rerun IC Capture next time. I would like to preserve all property values modified from my application, the same as IC Capture does. Please advice if you have any idea where is the problem. Here is my simplified code snipped of setting fps:
Grabber grabber;
if (grabber.openDev("DFx 21AUC03"))
{
double fps = 5.0;
if (grabber.setFPS(fps))
{
fps = grabber.getFPS();
std::cout << "fps is: " << fps << std::endl;
}
}
grabber.closeDev();
The output fps value is correct (5.0), but if I run IC Capture then this new value is not preserved (shows its previous value).
I'm using DFx21AUC03 camera and MS Visual Studio 2005.The purpose of my application is setting all camera supported properties (video format, fps, white balance, gain,etc.) from command line. Here is my test scenario. First I run my application and set various properties to some new values. Then I exit my application and run IC Capture 2.1 application. All properties except video format and fps are updated to those new, previously set values from my application. If I change video format and fps properties from the IC Capture application, those values are preserved when I rerun IC Capture next time. I would like to preserve all property values modified from my application, the same as IC Capture does. Please advice if you have any idea where is the problem. Here is my simplified code snipped of setting fps:
Grabber grabber;
if (grabber.openDev("DFx 21AUC03"))
{
double fps = 5.0;
if (grabber.setFPS(fps))
{
fps = grabber.getFPS();
std::cout << "fps is: " << fps << std::endl;
}
}
grabber.closeDev();
The output fps value is correct (5.0), but if I run IC Capture then this new value is not preserved (shows its previous value).