MVTec Software GmbH
  Building Vision For Business
MVTec at AUTOMATICA 2012
Halcon

HALCON 7.0 Frame Grabber Interface for Mikrotron INSPECTA-5 Boards

This page provides the documentation of the HALCON frame grabber interface HFGInspecta5.dll for the Mikrotron frame grabber boards INSPECTA-5. Registered customers can download the latest revision of this interface from the MVTec WWW server.

Revision: 2.0

System Requirements

  • Intel compatible PC with Windows 2000/XP.
  • Successfully installed Mikrotron driver mpfgi5xp.sys (version 0.1.6.0 or higher).
  • Mikrotron DLL mvfgi5.dll (version 0.1.6.0 or higher)
    This DLL must be within your search path %PATH%. If you do not have this DLL, please contact Mikrotron or the vendor from which you bought the frame grabber board.
  • Camera Link DLL clsermi5.dll (version 1.1.0.0 or higher) for serial communication over the frame grabber board.
  • HALCON frame grabber interface HFGInspecta5.dll or parHFGInspecta5.dll, respectively.
    If you have properly installed the interface, both DLLs should reside in bin\i586-nt4 within the HALCON base directory %HALCONROOT% you have chosen during the installation of HALCON.

Features

  • Support for Camera Link cameras with base, medium or full Camera Link interface.
  • Support for a wide range of Camera Link cameras with 8/10/12 bpp (monochrome) or 24/30/36 bpp (RGB).
  • Support for line scan cameras.
  • Transfer rates up to 660 MB/s from camera to frame grabber onboard memory.
  • Synchronous and asynchronous grabbing.
  • External trigger.
  • Subsampling or cropping of image parts (via camera configuration files).

Limitations

  • Only one frame grabber per computer.
  • Only one camera per frame grabber board.
  • No LUTs.
  • grab_region and grab_region_async not supported.

Description

Parameters for open_framegrabber():

Name 'INSPECTA5' The name of the HALCON frame grabber interface.
HorizontalResolution 1 Ignored (the desired image resolution is set via the camera configuration file specified in the CameraType parameter!). Default: 1.
VerticalResolution 1 Ignored (the desired image resolution is set via the camera configuration file specified in the CameraType parameter!). Default: 1.
ImageWidth 0 Ignored (the desired image part is set via the camera configuration file specified in the CameraType parameter!). Default: 0.
ImageHeight 0 Ignored (the desired image part is set via the camera configuration file specified in the CameraType parameter!). Default: 0.
StartRow 0 Ignored (the desired image part is set via the camera configuration file specified in the CameraType parameter!). Default: 0.
StartColumn 0 Ignored (the desired image part is set via the camera configuration file specified in the CameraType parameter!). Default: 0.
Field --- Ignored.
BitsPerChannel --- Ignored (the desired number of bits per image channel set via the camera configuration file specified in the CameraType parameter!). Default: -1.
ColorSpace --- Ignored.
Gain --- Ignored.
ExternalTrigger 'true', 'false' Activate/deactivate external triggering. Note that this setting overrides the corresponding setup in the camera configuration file. Default: 'false'.
CameraType 'file;camera' This parameter is used to specify the camera configuration file and the section within this file (e.g., 'c:\\Inspecta-5\\Halcon\\I5Halcon.cam;MC13xx 1280x1024 502fps 10x8 taps, 8bit/pixel' for the configuration file 'I5Halcon.cam' and the camera profile 'MC13xx 1280x1024 502fps 10x8 taps, 8bit/pixel'). To check a camera or to alter the camera configuration file, use the software delivered with the INSPECTA-5 board.
Device '0' The number of the frame grabber board (passed as a string!). Default: '0'.
Port 0 The number attached to the desired camera channel. Default: 0.
LineIn --- Ignored.

Parameters for set_framegrabber_param():

'continuous_grabbing' 'enable', 'disable' Activate or deactivate 'continuous grabbing'. Sets grabbing mode from single frame capture to continuous mode. If the continuous mode is enabled, the frame grabber board will grab all the time. In this mode you can achieve full frame rate. This mode is not allowed in combination with external triggering. Default: 'disable'.
'external_trigger' 'true', 'false' Activate/deactivate external triggering. Note that this setting overwrites the corresponding setup in the camera configuration file.
'grab_timeout' msec Specify the desired timeout (milliseconds passed as an integer) for aborting a pending grab (the default value is specified in the camera configuration file).
'photo' 0, 1, 2, ... Shutter time. Note that the time base for the shutter time depends on settings in the camera configuration file, e.g., 1.085 usec.
'start_async_after_grab_async' 'enable', 'disable' By default, at the end of grab_image_async a new asynchronous grab command is automatically given to the frame grabber board. If the parameter 'start_async_after_grab_async' is set to 'disable' this new grab command is omitted. This might be useful especially for switching between several connected cameras. Default: 'enable'.
'trigger_mode' 'edge', 'pulse_width' Specify desired trigger mode: 'edge' means that the trigger edge initiates the image acquisition (with a fixed image height). If trigger mode is set to 'pulse_width' the length of the trigger signal controls the actual image height. This mode is especially useful in combination with line scan cameras. Default: 'edge'.
'volatile' 'enable', 'disable' In the volatile mode the two frame grabber interface buffers are used directly to store HALCON images. This is the fastest mode avoiding to copy raw images in memory. However, be aware that older images are overwritten again and again as a side-effect. Thus, you can only process one image while you grab another image. Older images are invalid! Default: 'disable'.

Parameters for get_framegrabber_param():

Additional parameters supported by get_framegrabber_param only. Note that all parameters supported by set_framegrabber_param can also be accessed by get_framegrabber_param.

'revision' revision The revision number of the HALCON INSPECTA5 frame grabber interface.

External Triggering

If you enable this mode via open_framegrabber or set_framegrabber_param(FGHandle, 'ExternalTrigger', 'enable'), one image will be acquired with the trigger and stored in the buffer, if you activated this via grab_image_start. Thus, your HALCON application can process other data without loosing the frame. After activating the external trigger for one frame with grab_image_start, both grab_image and grab_image_async simply will return the next frame (or wait if it has not been acquired so far). Note that the external trigger is only allowed for cameras, that are asynchronous resettable, e.g., the Mikroton MC 13xx cameras.

Release Notes

  • Revision 2.0 (Oct 24, 2005):
    • First official release.

© Copyright 2012, MVTec Software GmbH, corporate/legal/privacy information