FrameRateControl
Top  Previous  Next

Description

Returns or sets the frame rate prioritized control mode. The values from -1 to 2 correspond to the following modes:

-1 - Off  
   The frame rate control is disabled  
0 - Manual  
The frame rate level is controlled by the value of the FrameRate property  
1 - Auto  
The camera controls the frame rate level by itself continuously  
2 - One push  
The camera sets the optimal frame rate level by itself and returns to the manual mode  


Syntax


[VB]
objActiveDcam.FrameRateControl [= Value]


[C/C++]
HRESULT get_FrameRateControl( short *pFrameRateControl );
HRESULT put_FrameRateControl( short FrameRateControl );



Data Type
[VB]

Integer

Parameters
[C/C++]

pFrameControl [out, retval]  
Pointer to the current frame rate control mode  
FrameRateControl [in]  
The frame rate control mode to be set  

Return Values


S_OK  
Success  
E_FAIL  
The frame rate control is not available for the selected camera  
 

Example


The following VB example demonstrates the use of a checkbox to turn on the frame rate prioritized control.

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

ActiveDcam1.FrameRateControl = 0
Else

ActiveDcam1.FrameRateControl = -1
End If

End Sub

 

Remarks


The property is available only if the currently selected camera supports the frame rate control per IIDC 1.32 specifications.
.