ExposureAuto
Top  Previous  Next

Description

Returns or sets the automatic exposure (AE) mode. Can be one of the following values:

"Off"  
Exposure is manually controlled using ExposureTime  
"Once"  
The camera sets the optimal exposure level and returns to the "Off" state  
"Continuous"  
The camera constantly adjusts the exposure level  


Syntax


[VB]
objActiveUSB.ExposureAuto [= Value]


[C/C++]
HRESULT get_ExposureAuto( bstr *pValue );
HRESULT put_ExposureAuto( bstr Value );



Data Type
[VB]

String

Parameters
[C/C++]

pValue [out, retval]  
Pointer to the string specifying the exposure control mode  
Value [in]  
The exposure control mode to be set  

Return Values


S_OK  
Success  
E_NOINTERFACE  
The feature is not available for the selected camera  
E_INVALIDARG  
The value is not part of the enumerated set  
E_FAIL  
Failure to set the feature value  
 

Example


The following VB example demonstrates the use of a check box to switch between the manual and automatic exposure control.

Private Sub
 Check1_Click()
If
 Check1.Value = 1 
Then

ActiveUSB1.ExposureAuto = "On"
Else

ActiveUSB1.ExposureAuto = "Off"
End If

End Sub

 

Remarks


Depending on a camera model, other device-specific values may be available for this feature. The list of valid values can be retrieved using GetEnumList.

Note that the property is available only if the currently selected camera supports the ExposureAuto feature per GenICam standard.