IC Imaging Control ActiveX

ICImagingControl.VideoNorms Property

ICImagingControl.VideoNorms Property

Returns a collection of available video norms for the current device.
Syntax:
Public VideoNorms As VideoNorms
Limitations:

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

Sample:

This example displays all available video norms supported by the current selected video capture device in a combo box. If no video norms are availalbe, the text "n/a" will be displayed in the combo box. In this case the combo box will be disabled. If a device is valid, it must have a video norm anyway. The combo box for the video norms is named "cboVideoNorm" in this example.

Private Sub UpdateVideoNorms()
    Dim Name As String
    Dim VidNrmCol As VideoNorms
    Dim Item As Variant
    Dim Idx As Long
    Idx = -1
    Set VidNrmCol = ImagingControl.VideoNorms
    cboVideoNorm.Clear
    If VidNrmCol.Count > 0 Then
        ' If video norms have been found, add them to the
        ' combo box.
        For Each Item In VidNrmCol
            cboVideoNorm.AddItem Item.Name
        Next
        ' Get the previously selected video norm.
        cboVideoNorm.Enabled = True
        Name = ImagingControl.VideoNorm
        Idx = VidNrmCol.FindIndex(Name)
        If Idx <> -1 Then
            cboVideoNorm.ListIndex = Idx - 1
        Else
            cboVideoNorm.ListIndex = 0
        End If
    Else
        ' No video norms have been found.
        cboVideoNorm.AddItem "n/a"
        cboVideoNorm.Enabled = False
        cboVideoNorm.ListIndex = 0
    End If
End Sub

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

See also: ICImagingControl, VideoNorms, VideoNormAvailable, VideoNorm

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