FrameRate
Top  Previous  Next

Description

Returns or sets the row value of the frame rate.


Syntax


[VB]
objActiveDcam.FrameRate [= Value]


[C/C++]
HRESULT get_FrameRate( long *pFrameRate );
HRESULT put_FrameRate( long FrameRate );



Data Type
[VB]

Long

Parameters
[C/C++]

pFrameRate [out,retval]  
Pointer to the current frame rate value  
FrameRate [in]  
The frame rate value to be set  


Return Values


S_OK  
Success  
E_FAIL  
The frame rate control is not available for the selected camera  
E_INVALIDARG  
The value is out of range  
 

Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the camera's gain.

Private Sub
 Form_Load()

ActiveDcam1.Acquire=
True

HScroll1.Value = ActiveDcam1.FrameRate
HScroll1.Min = ActiveDcam1.GetFrameRateMin
HScroll1.Max = ActiveDcam1.GetFrameRateMax
End Sub


Private Sub
 HScroll1_Scroll()

ActiveDcam1.FrameRate = HScroll1.Value

End Sub

 

Remarks


This property changes the relative value of the frame rate. The valid property range is reported by the GetFrameRateMin and GetFrameRateMax methods. Note that the property is available only if the currently selected camera supports the frame rate control per IIDC 1.32 specifications.