Introduction to the Common Vision Grabber OCX

<< Click to Display Table of Contents >>

Navigation:  Image Manager > Image Manager API > ActiveX Controls > Grabber Control >

Introduction to the Common Vision Grabber OCX

 

The Common Vision Grabber Control provides easy control of an image acquisition device.

When the Common Vision Grabber Control has been integrated in a project, a grabber object can be inserted in your own application via the following icon:

 

The Common Vision Grabber Control is used to control an image acquisition device like a frame grabber or a camera.

It incorporates, for example, functions to change the camera port and to set the trigger mode.

Like all other Common Vision Blox Controls, the Common Vision Grabber control has an Image property which lets a Common Vision Blox-compatible image to be passed to the Control .

 

Note that the image must originate from a driver.

With the aid of the Common Vision Grabber Control it is possible to ascertain which interface is provided by the image.

The CanXXX properties make it possible to check whether the image provides an interface or not.

Before the camera port is changed, for instance, an application should check whether the ICameraSelect interface is available.

 

In the supported compilers  you can set all properties by means of the Properties dialog. You can also make the settings in the Properties window of the Common Vision Grabber Control.

 

The first tab of the dialog named General shows the available interfaces for the the assigned image source:

 

CVGrabber_PropertyPage01

 

In the next tab named SelectCamera you can access ICameraSelect and ICameraSelect2 properties and methods.

To refresh the settings click the Refresh button:

CVGrabber_PropertyPage02

 

 

In tab SelectBoard you can access IBoardSelect and IBoardSelectSelect2 properties and methods.

To refresh the settings click the Refresh button:

 

CVGrabber_PropertyPage03

 

 

In tab Trigger you can access ITrigger and ISoftwareTrigger properties and methods, ensure proper configuration file settings for your image acquisition device before using the functions:

 

CVGrabber_PropertyPage04

 

 

In tab ImageRectangle you can access IImageRect properties and methods.

If you specify invalid settings for offset and size a dashed red rectangle will appear indicating the maximum size to specify:

 

CVGrabber_PropertyPage05

 

 

In tab DeviceControl you can access IDeviceControl properties and methods. Notice that only string commands are supported on this page.

The parameters for the DeviceControl Operation are explained with the SendStringCommandEx method.

Refer to the CVB Driver User Guide of the specific image acquisition device for valid commands and their parameters:

 

CVGrabber_PropertyPage06

 

Changes are passed to control by means of the Apply button.

 

Related Topics

Framegrabber and Camera Driver