Sensor Acquisition Mode#
This feature is only available on Basler racer 2 L cameras.
To find out whether your camera is equipped with a single, dual, or quad line sensor, read the topic of your camera model. You can find your camera topic in the Area and Line Scan Cameras section under "Models".
信息
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 single, dual, and quad line image acquisition. In Dual and Quad Line acquisition mode, you can use, e.g., different exposure times or brightness settings for the individual sensor lines.
To set the sensor acquisition mode, set the BslSensorAcquisitionMode
parameter to one of the following values:
SingleLine
: Enables the Single Line sensor acquisition mode. In Single Line sensor acquisition mode, the camera uses one sensor line for each acquired image. This is the default setting.DualLine
: Enables the Dual Line sensor acquisition mode. In Dual Line sensor acquisition mode, the camera uses two sensor lines for each acquired image.QuadLine
: Enables the Quad Line sensor acquisition mode. In Quad Line sensor acquisition mode, the camera uses four sensor lines for each acquired image.
信息
To change between the Single and Dual Line sensor acquisition mode, image acquisition must be stopped.
示例代码#
/* 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);
您也可以使用 pylon Viewer 轻松设置参数。