GetFeatureMin
Top  Previous  Next

Description

Returns the minimum numerical value allowed for the specified camera feature.


Syntax


[VB]
Value=objActiveUSB.GetFeatureMin ( Name ) 


[C/C++]
HRESULT GetFeatureMin( bstr Name, float* pValue );


Data Types
[VB]

Name: String
Return value
: Single


Parameters
[C/C++]

Name [in]  
String specifying the name of the feature  
pValue [out, retval]  
Pointer to the minimum value of the feature  


Return Values


S_OK  
Success  
E_NOINTERFACE        
Feature does not exist or not available  
E_FAIL  
Failure to read the value  
 

Example


This VB example uses the minimum and maximum gain values to initialize the slider control:

Private Sub
 Form_Load()

Slider1.Min = ActiveUSB1.GetFeatureMin("GainRaw")
Slider1.Max = ActiveUSB1.GetFeatureMax("GainRaw")
Slider1.Value = ActiveUSB1.GetFeature("GainRaw")
End Sub

 

Remarks


Depending on the Type of the feature GetFeatureMin will return the following values:

Feature Type
Return value
Integer
Minimum allowed value converted to floating point
Float
Minimum allowed value
Boolean
Zero value
Enumerated
Zero value
String
Zero value
Command
Zero value


If the currently selected camera does not support the specified feature, the method will generate an error.