GainSelector
Top  Previous  Next

Description

Returns or sets the channel to be controlled by gain adjustments. Can be one of the following values:

"All"  
   Gain adjustments will be applied to all channels.  
"Red"  
   Gain adjustments will be applied to the red channel.  
"Green"  
   Gain adjustments will be applied to the green channel.  
"Blue"  
   Gain adjustments will be applied to the blue channel.  
"Y"  
   Gain adjustments will be applied to Y channel.  
"U"  
   Gain adjustments will be applied to U channel.  
"V"  
   Gain adjustments will be applied to V channel.  
     


Syntax


[VB]
objActiveGige.GainSelector [= Value]


[C/C++]
HRESULT get_GainSelector( string *pValue );
HRESULT put_GainSelector( string Value );



Data Type
[VB]

String

Parameters
[C/C++]

pValue [out, retval]  
Pointer to the string specifying the gain selector setting  
Value [in]  
The gain selection 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 combo box to switch between different gain channels:

Private Sub
 Form_Load()
Lst = ActiveGige1.GetEnumList("GainSelector")
For
 i = 0 
To
 
UBound
(Lst)
Combo1.AddItem (Lst(i))
Next

Combo1.ListIndex = ActiveGige1.GainSelector
End Sub

Private Sub
 Combo1_Click()
ActiveGige1.GainSelector = Combo1.Text
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 GainSelector feature per GenICam standard.