GetRateList
Top  Previous  Next

Description

Returns the array of floating point values containing the frame rates available for the current video mode.


Syntax


[VB]
Value=objActiveDcam.GetRateList()


[C/C++]
HRESULT GetRateList( VARIANT* pList );


Data Types
[VB]

Return value: Variant (SAFEARRAY)


Parameters
[C/C++]

pList [out,retval]  
Pointer to the SAFEARRAY containing available frame rates  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example initializes a combo box with the available frame rates and uses it to select a specific rate:

Private Sub
 Form_Load()
RateLst = ActiveDcam1.GetRateList
For
 i = 0 
To
 UBound(RateLst)
Combo1.AddItem (RateLst(i))
Next
Combo1.ListIndex = 0
ActiveDcam1.Acquire = 
True
End Sub

Private Sub
 Combo1_Click()
ActiveDcam1.Rate = Combo1.ListIndex
End Sub
 

Remarks


DCAM compliant cameras support the following predefined frame rates: 1.875 fps, 3.75 fps, 7.5 fps, 15 fps, 30 fps, 60 fps. Additional frame rates can be provided by the camera manufacturer. See Rate for more details.