PDA

View Full Version : Auto Gain/Exposure



sandheep
August 20, 2005, 01:48:20
Hello--

I have a Sony XCD-X710 v2.20E using the drivers from the Imaging Source.

How do I set the camera to auto gain and auto exposure at runtime? I would do it at design time, but my development system has a different device name than my application system.

Thanks,

Sandheep

sandheep
August 20, 2005, 03:04:11
I pieced this together from the List VCD Properties example:

Dim prop As ICImagingControl.VCDSwitchProperty

Dim itf As ICImagingControl.VCDPropertyInterface = .VCDPropertyItems.FindInterface(VCDHelpers.VCDIDs. VCDID_Gain & ":" & VCDHelpers.VCDIDs.VCDElement_Auto & ":" & VCDHelpers.VCDIDs.VCDInterface_Switch)

prop = itf
prop.Switch = True

Unfortunately, it causes my program to crash on startup.

Any ideas?

Thanks again,

Sandheep

Stefan Geissler
August 22, 2005, 12:11:26
Hello Sandhepp,

I tested your code. The only error i found was a missing "ICImagingControl1" before ".VCDPropertyItems". It is a good idea to check, whether "itf" is not "nothing" before using it. Also make sure that you use the correct driver and not the standard Windows DCam driver.