コンテンツにスキップ
STAGING SERVER
DEVELOPMENT SERVER

Sensor Acquisition Mode#

The Sensor Acquisition Mode camera feature allows you to determine how many sensor lines should be used for image acquisition.

This feature is only available on Basler racer 2 L and racer 2 XL cameras.

To find out whether your camera is equipped with a single, dual, quad line or a TDI sensor, read the topic of your camera model. You can find your camera topic in the Area and Line Scan Cameras section under "Models".

情報

On racer 2 L mono cameras, when configuring the black level, exposure time, or gain, the Sensor Acquisition Mode allows you to determine whether your settings should apply to a single sensor line or whether you want to specify different settings for multiple sensor lines.

機能を使用する#

The sensor acquisition mode allows you to choose between different acquisition modes, e.g., Single or Dual Line image acquisition.

Depending on whether you use a racer 2 L mono camera, which is a "classic" line scan camera, or a racer 2 XL camera, which is a TDI line scan camera, there are different sensor acquisition modes available.

racer 2 L Mono Cameras#

To set the sensor acquisition mode on racer 2 L mono cameras, set the BslSensorAcquisitionMode parameter to one of the following values:

  • SingleLine: Enables the Single Line sensor acquisition mode. In this mode, the camera uses one sensor line for each acquired image. This is the default setting.
  • DualLine, QuadLine: Enables the Dual or Quad Line sensor acquisition mode. In these modes, the camera uses two or four sensor lines for each acquired image. Using this mode, you can use, e.g., different exposure times or brightness settings for the individual sensor lines.

情報

To change between the Single and Dual Line sensor acquisition mode, image acquisition must be stopped.

racer 2 XL Cameras#

To set the sensor acquisition mode on racer 2 XL cameras, set the BslSensorAcquisitionMode parameter to one of the following values:

  • Area: Enables the Area sensor acquisition mode. In this mode, the TDI camera operates as an area scan camera using the sensor's array of pixels. This mode is used during calibration when adjusting the focus of the lens.
    In Area sensor acquisition mode, the camera is running in free run mode. While in free run mode, you can adjust the exposure time according to your needs.
  • TDISingleLine: Enables the TDI Single Line sensor acquisition mode. In this mode, the TDI camera uses one array of pixels with one readout line.

サンプルコード#

// Set the dual line sensor acquisition mode on the camera
camera.BslSensorAcquisitionMode.SetValue(BslSensorAcquisitionMode_DualLine);
INodeMap& nodemap = camera.GetNodeMap();
// Set the dual line sensor acquisition mode on the camera
CEnumParameter(nodemap, "BslSensorAcquisitionMode").SetValue("DualLine");
// Set the dual line sensor acquisition mode on the camera
camera.Parameters[PLCamera.BslSensorAcquisitionMode].SetValue(PLCamera.BslSensorAcquisitionMode.DualLine);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Set the dual line sensor acquisition mode on the camera */
errRes = PylonDeviceFeatureFromString(hdev, "BslSensorAcquisitionMode", "DualLine");
CHECK(errRes);
# Set the dual line sensor acquisition mode on the camera
camera.BslSensorAcquisitionMode.Value = "DualLine"

pylon Viewerを使用して、パラメーターを簡単に設定することもできます。