Documentation

NEON BitFlow Image Input

Support for NEON BitFlow Image Input block

Library

Simulink® Real-Time™ Library for BitFlow™ Camera Link®

Description

Use the NEON BitFlow Image Input block to acquire real-time video frames or still images from a Camera Link camera. Attach the camera to a BitFlow Neon-CLB camera interface board on the target computer. After you acquire the image, you can:

  • Display the output on the target computer monitor using a Video Display block.

  • Stream captured frames to the development computer display (for example, using the To Video Display block from Computer Vision System Toolbox™).

  • Analyze the image signals on the development computer.

  • Compress or decompress the input signal with the JPEG Compression or JPEG Decompression blocks.

The Image signal type for the NEON BitFlow Image Input block output is Single multidimensional signal.

Block Parameters

Camera config file

Click the Browse button to select a configuration from the BitFlow SDK installation folder.

The browser window displays a list of camera configuration files for BitFlow R64-type camera boards. The BitFlow Neon CLB board supports cameras from this list. Scroll and open the camera configuration file specified by you and your BitFlow representative—for example, CIS-VCC-G21V31CL-E1-FreeRun.r64. Alternatively, start typing the manufacturer name, and an abbreviated list of camera configuration files appears for that manufacturer. Open the BitFlow camera configuration file for your camera model.

If you cannot locate your camera in the list, contact BitFlow to find a camera that is compatible with your requirements.

When you open the configuration file, it assigns values to the noneditable parameters:

Manufacturer

Displays camera manufacturer name.

Model

Displays the model of the camera that the configuration file configures and works with.

Mode

Describes the camera operation mode.

Bit Depth

Displays the number of bits per pixel that the camera uses.

Acquisition Timeout

Displays the number of milliseconds before the board sends an interrupt. For example, if the camera is not on, the board emits an interrupt.

Full Width

Displays the width of the incoming image, in pixels.

Full Height

Displays the height of the incoming image, in lines.

Trigger Mode

From the Trigger Mode list, select one of the following:

  • Free Running. The camera and frame grabber run continuously. When the camera finishes an exposure, the frame grabber board copies the image to target memory using DMA and signals a frame completion interrupt. Upon receiving the interrupt, the model runs and performs image processing.

  • Timer Triggered. The target computer system timer starts the model. When the model runs, it simultaneously starts a camera exposure and begins to process the image captured during the previous time step. When the camera finishes the exposure, the frame grabber copies the image to target memory using DMA for processing in the next time step.

  • Differential Trigger. A rising edge on the differential trigger input triggers the camera. When the camera finishes the exposure, the frame grabber copies the image to target memory using DMA and signals a frame completion interrupt. Upon receiving the interrupt, the model runs and performs image processing.

  • TTL Trigger. A rising edge on the TTL trigger input triggers the camera. The model runs from the frame completion interrupt, as with Differential Trigger.

  • Opto Trigger. A rising edge on the Opto trigger input triggers the camera. The model runs from the frame completion interrupt, as with Differential Trigger.

The camera configuration file determines whether you can use the block mask to switch the trigger mode to another mode, such as Free Running. You may need to contact BitFlow for a camera configuration file for the mode that you want.

Acquisition Region of Interest

Select a rectangular region of the full image to output from the block. When you select a new camera configuration file, these values are set to the full size of the image specified in the configuration file.

Column 0, row 0 is in the upper left corner of the image.

Starting Column

Column numbers are 0-based.

Starting Row

Row numbers are 0-based.

Columns

The number of columns plus the starting column must be less than the full image width.

Rows

The number of rows plus the starting row must be less than the full image height.

Camera configuration serial command

Select the serial port configuration and specify a command to send to the camera when the model starts executing.

Baud Rate

Select one of the following: 9600, 19200, 38400, 57600, 115200, 230400, or 460800 baud.

Bits per Byte

Select one of the following: 5, 6, 7, or 8. Most camera configurations use 8 bits per byte.

Parity

Select one of the following: None, Even, Odd, Mark, or Space.

Stop Bits

Select either 1 or 2.

Command String

Enter a command to send to your camera. The exact format of the command depends on the camera.

Display camera response string

Select this check box to display the camera response to the command. Nonprintable control codes are printed as C escape sequences.

Camera Configuration comments

Displays comments from BitFlow, Inc., about this configuration.

Sample time

Enter a base sample time or a multiple of the base sample time.

If you configure the real-time application to use the board interrupt, the application adds the sample time to the displayed execution time.

PCI slot (-1:autosearch)

If only one board of this type is in the target computer, enter -1 to locate the board.

If two or more boards of this type are in the target computer, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber,SlotNumber].

To determine the bus number and the PCI slot number, type:

tg = slrt;
getPCIInfo(tg, 'installed')

Was this topic helpful?