コンテンツにスキップ

Sensor Acquisition Mode#

The Sensor Acquisition Mode camera feature allows you to choose between single or dual line image acquisition.

The feature is only available on Basler racer 2 L 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 two sensor lines.

機能を使用する#

使用可能なAcquisition Mode#

Single Line Sensor Acquisition Mode#

In Single Line sensor acquisition mode, the camera uses one sensor line for each acquired image.

Dual Line Sensor Acquisition Mode#

In Dual Line sensor acquisition mode, the camera uses two sensor lines for each acquired image.

The Dual line sensor acquisition mode allows you to use, e.g., different exposure times or brightness settings for the two sensor lines.

Setting the Sensor Acquisition Mode#

To set the sensor acquisition mode, set the BslSensorAcquisitionMode パラメーターを次のいずれかの値に設定します。

  • SingleLine: Enables the Single Line sensor acquisition mode. This is the default setting.
  • DualLine: Enables the Dual Line sensor acquisition mode.

情報

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

サンプルコード#

// Set dual line sensor acquisition mode on the camera
camera.BslSensorAcquisitionMode.SetValue(BslSensorAcquisitionMode_DualLine);
INodeMap& nodemap = camera.GetNodeMap();
// Set dual line sensor acquisition mode on the camera
CEnumParameter(nodemap, "BslSensorAcquisitionMode").SetValue("DualLine");
// Set 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 dual line sensor acquisition mode on the camera */
errRes = PylonDeviceFeatureFromString(hdev, "BslSensorAcquisitionMode", "DualLine");
CHECK(errRes);
# Set dual line sensor acquisition mode on the camera
camera.BslSensorAcquisitionMode.Value = "DualLine"

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