IC Imaging Control ActiveX

ICImagingControl.DeviceFrameRate Property

ICImagingControl.DeviceFrameRate Property

Returns or sets the desired frame rate (in frames per second) of the current video capture device.
Public DeviceFrameRate As Single

Only available when a device is open and valid.


A call to ICImagingControl.DeviceFrameRates retrieves all valid frame rates. Only valid frame rates may be set. If an invalid frame rate is specified, the default frame rate of the video capture device will be set instead.

The device frame rate depends on the current video format. Changing the ICImagingControl.VideoFormat property invalidates the device frame rate.

If the bandwidth is too low, the video capture device is not able to send frames according to the desired frame rate which is stored in DeviceFrameRate. The actual frame rate of the current device can be retrieved by using ICImagingControl.DeviceCurrentActualFrameRate.


This example shows how to set a frame rate. Assume, that lstFrameRateList is a combo box, which was previously filled with the frame rates the video capture device supports:

Private Sub lstFrameRateList_Click()
    Dim SelectedRate As Integer
    Dim DevFrameRateCol As DeviceFrameRates
    ' Get the DeviceFrameRates collection from ICImagingControl
    Set DevFrameRateCol = ICImagingControl1.DeviceFrameRates
    ' Get the selected frame rate from the combo box.
    SelectedRate = lstFrameRateList.ListIndex + 1
    ' Stop the grabber before setting the new frame rate.
    ' Now, set the new frame rate
    ICImagingControl1.DeviceFrameRate = DevFrameRateCol.Item(SelectedRate)
End Sub
See also: ICImagingControl, ICImagingControl.DeviceFrameRateAvailable, ICImagingControl.DeviceFrameRates, ICImagingControl.DeviceCurrentActualFrameRate

<< ICImagingControl

Get in touch with us

About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us