IC Imaging Control .NET

ICImagingControl.DeviceFrameRate Property

ICImagingControl.DeviceFrameRate Property

Returns or sets the desired frame rate (in frames per second) of the current video capture device.
Syntax:
[VB.NET]
Public DeviceFrameRate As Single
[C#]
public float DeviceFrameRate;
Limitations:

Only available when a device is open and valid.

Remarks:

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.

Sample:

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:

[VB.NET]
Dim SelectedRate As Single ' Get the selected frame rate from the combobox. SelectedRate = IcImagingControl1.DeviceFrameRates(lstFrameRateList.SelectedIndex) ' Stop the grabber before setting the new frame rate. IcImagingControl1.LiveStop() ' Now, set the new frame rate. IcImagingControl1.DeviceFrameRate = SelectedRate
[C#]
// Get the selected frame rate from the combobox. float SelectedRate = ICImagingControl1.DeviceFrameRates[lstFrameRateList.SelectedIndex]; // Stop the grabber before setting the new frame rate. ICImagingControl1.LiveStop(); // Now, set the new frame rate. ICImagingControl1.DeviceFrameRate = SelectedRate;
See also: ICImagingControl, ICImagingControl.DeviceFrameRateAvailable, ICImagingControl.DeviceFrameRates

<< 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