IC Imaging Control .NET

ICImagingControl.InputChannels Property

ICImagingControl.InputChannels Property

Returns a collection of available input channels for the current video capture device.
Public InputChannels As InputChannel()
public InputChannel[] InputChannels;

Run time only, read only. Only available when a device is open and valid.


This example displays all available input channels in a combo box. If no input channels are available, the text "n/a" will be displayed in the combo box. In this case the combo box will be disabled. The combo box for the input channels is named "cboInputChannel" in this example.

cboInputChannel.Items.Clear() If IcImagingControl1.InputChannelAvailable Then If IcImagingControl1.InputChannels.Length > 0 Then ' If input channels have been found, ' add them to the combobox. For Each Item As InputChannel In IcImagingControl1.InputChannels cboInputChannel.Items.Add(Item.Name) Next cboInputChannel.SelectedIndex = cboInputChannel.Items.IndexOf(IcImagingControl1.InputChannel) cboInputChannel.Enabled = True End If Else ' No input channels have been found. cboInputChannel.Items.Add("n/a") cboInputChannel.Enabled = False cboInputChannel.SelectedIndex = 0 End If
cboInputChannel.Items.Clear(); if (ICImagingControl1.InputChannelAvailable) { // If input channels have been found, add them to the combobox. foreach (InputChannel Item in ICImagingControl1.InputChannels) { cboInputChannel.Items.Add(Item.Name); } cboInputChannel.SelectedIndex = cboInputChannel.Items.IndexOf(ICImagingControl1.InputChannel); cboInputChannel.Enabled = true; } else { // No input channels have been found. cboInputChannel.Items.Add("n/a"); cboInputChannel.Enabled = false; cboInputChannel.SelectedIndex = 0; }

A complete example of how to get the video capture device properties can be found in the Making Device Settings chapter.

See also: ICImagingControl, InputChannels, ICImagingControl.InputChannelAvailable, ICImagingControl.InputChannel

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