Software and driver installation
- Install Basler Pylon, do not forget to select driver for Camera Link. The Pylon package contains tools for camera configuration (Pylon Viewer) and registration (Pylon CL Configuration Tool)
- Install BitFlow SDK (use serial number 0, if you have not purchased a full licence). The BitFlow SDK contains utilities for editing and registration of camera configuration files (CamEd, SysReg) together with live video preview (CiView) and useful throughput testing utility CiBench. Only one of the utilities can access the framegrabber at a time.
Connecting the camera to the framegrabber
Because Neon-CLB only supports Base Camera Link, we connect the cable to camera port marked with "B" (the other port is for Full Camera Link). If the LED indicator glows, the camera is powered over CameraLink. If not, PoCL must be enabled or one can power the camera with a standalone adapter. PoCL can be enabled when you open the camera configuration file in CamEd as it is shown below. Remember to edit the configuration file that you will later register with SysReg utility. The camera does not wake up even with enabled PoCL until you attempt to grab images (e.g. with the CiView utility). However, you have to do some other settings mentioned later on before you can try to grab images.![]() |
Enabling PoCL in the CamEd utility |
Camera-framegrabber communication settings
The settings are done with Pylon CL Configuration Tool. After launching the program, one can choose the COM ports to be scanned for cameras. Tick the one called "BitFlow"and click "Probe Enabled Ports". The utility should detect the Basler camera. It is also possible to set the baud rate of the serial line under advanced settings. This value must be set the same as the one in the camera settings (recommended value is 460800 bauds per second).
Creating and setting the camera configuration file
In the first step, we have two options depending on the answer to question if we were provided with a set of ready-to-use camera files by the camera vendor or not. In the first case, we just copy the vendor camera files into the directory "..\BitFlow SDK x.xx\Config\R64". If we don't have any appropriate configuration file (one might be also present in the above directory after installation of the BitFlow SDK), we have to create our own configuration file using the CamEd utility from the BitFlow SDK. To do this, we run the utility, open any R64 configuration file, edit the settings so that they suit our needs and capabilities of our camera and save the file as our own one. In fact, the camera configuration file specifies, how the data from the camera are ordered as well as their format to the framegrabber.The most important settings in camera configuration file include the following:
- Active pixels per line (image width)
- Active lines per frame (image height)
- Sensor type - if we use an RGB camera, in the 'Sensor' tab, we can enable hardware Bayer decoding on the framegrabber under 'Sensor architecture'. This option decreases the maximum acquisition rate because the amount of transferred data triples, as we get full resolution image in all three color layers every period. Otherwise, we get only a raw Bayer array output from the framegrabber.
- Camera bit depth in the 'Bayer' tab specifies number of bits per pixel in one layer of the framegrabber output.
- Enable/disable Power over Camera Link (PoCL). This is quite an useful option how to turn off the power supply to the camera when we need to break the Camera Link connection without turning off the computer with framegrabber. We can just uncheck the 'Power over Camera Link' box, save the configuration file and then choose 'Display' > 'Open' to propagate the settings to the framegrabber. Before finally breaking the connection, we make sure that the power is really turned off by checking the LED indicator on the camera.
![]() |
Enabling hardware Bayer decoding in CamEd utility |
In the second step, we register the camera configuration file that will be used for image acquisition. We launch the SysReg utility from the BitFlow SDK and set the required camera configuration file to be used by clicking "Configure..." and then choosing the appropriate camera file.
Camera configuration
Camera settings can be edited in Pylon Viewer, which is a software from Basler. It is better to see the camera user's manual as a reference of various settings. We have to keep in mind that the camera settings must correspond with the settings in the camera configuration file registered with SysReg utility! If you change any settings that affect the format of the data from the camera, such as resolution, you have to update the registered camera configuration file so that the settings are consistent. Otherwise, you will get errors or destroyed image.The Pylon Viewer provides tools for exposure settings (white balance, exposure time, gain etc.).
A very useful and important functionality is the possibility to specify up to 4 configuration sets that can be saved in the camera memory and loaded at any time through the Pylon Viewer. A configuration set stores all the camera settings available in the Pylon Viewer. It is also possible to specify, which configuration set is loaded during the camera startup. If we don't specify our own startup configuration set, all settings will be reverted to default values every time we reboot the camera.
![]() |
Setting the configuration sets |
First image acquisition
Having set camera, the configuration file and framegrabber communication, you can try to display a live video with CiView. If you use PoCL, the framegrabber will at first fail to acquire images, because at the first attempt, the camera will not be started yet. This first attempt should wake the camera up, and the LED indicator should glow (green+red during startup, green when the camera is ready). When the camera starts up, just re-open the Display Surface window in CiView and you should see live video from the camera.![]() |
Screenshot from live view |
BitFlow NEON-CLB with MATLAB&Image Acquisition Toolbox
BitFlow offers a comfortable solution for users that are using Neon or other framegrabbers on a PC with Matlab together with the Image Acquisition Toolbox. It is possible to download adapter for BitFlow framegrabbers, which provides interface for Image Acquisition Toolbox. We find this very useful, because it is quite hard to visualize anything on the xPC Target, so it is easier to debug and test the algorithms on a standard PC with Matlab. A short demo script:
%% TEST IMAGE ACQUISITION WITH BitFlow FRAMEGRABBER
%
% register the BitFlow adaptor
clear all, close all, clc
adapt_path = 'C:\BitFlow SDK 5.60\Bin64\MATLAB Adaptor\WIN64\BitFlow.dll';
imaqregister(adapt_path, 'register');
% create video object and get source object
vidobj = videoinput('bitflow');
srcobj = vidobj.Source;
srcobj.TriggerMode = 'One Shot';
%% grab and display 200 frames
for it=1:200
frame = getsnapshot(vidobj);
imagesc(frame), axis equal
disp(['Frame no. ' num2str(it)])
end
%% TEST IMAGE ACQUISITION WITH BitFlow FRAMEGRABBER
%
% register the BitFlow adaptor
clear all, close all, clc
adapt_path = 'C:\BitFlow SDK 5.60\Bin64\MATLAB Adaptor\WIN64\BitFlow.dll';
imaqregister(adapt_path, 'register');
% create video object and get source object
vidobj = videoinput('bitflow');
srcobj = vidobj.Source;
srcobj.TriggerMode = 'One Shot';
%% grab and display 200 frames
for it=1:200
frame = getsnapshot(vidobj);
imagesc(frame), axis equal
disp(['Frame no. ' num2str(it)])
end