跳转到内容

Sensor Readout Mode#

相机的 Sensor Readout Mode 功能允许您在提供不同传感器读出时间的传感器读出模式之间进行选择。

缩短传感器的读出时间可以提高相机的帧速率

该功能的使用#

To configure the sensor readout mode, set the SensorReadoutMode parameter value one of the following values:

  • Normal: The readout time for each row of pixels remains unchanged.
  • Fast: The readout time for each row of pixels is reduced, compared to normal readout. Accordingly, the overall sensor readout time is reduced and the camera can operate at higher frame rates. This can, however, result in reduced image quality.

示例代码#

// Set the sensor readout mode to Fast
camera.SensorReadoutMode.SetValue(SensorReadoutMode_Fast);
// Get the current sensor readout mode
SensorReadoutModeEnums e = camera.SensorReadoutMode.GetValue();
INodeMap& nodemap = camera.GetNodeMap();
// Set the sensor readout mode to Fast
CEnumParameter(nodemap, "SensorReadoutMode").SetValue("Fast");
// Get the current sensor readout mode
String_t e = CEnumParameter(nodemap, "SensorReadoutMode").GetValue();
// Set the sensor readout mode to Fast
camera.Parameters[PLCamera.SensorReadoutMode].SetValue(PLCamera.SensorReadoutMode.Fast);
// Get the current sensor readout mode
string e = camera.Parameters[PLCamera.SensorReadoutMode].GetValue();
/* 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 */
size_t len = 0;
char e_str[64] = {0};
/* Set the sensor readout mode to Fast */
errRes = PylonDeviceFeatureFromString(hdev, "SensorReadoutMode", "Fast");
CHECK(errRes);
/* Get the current sensor readout mode */
len = sizeof(e_str);
errRes = PylonDeviceFeatureToString(hdev, "SensorReadoutMode", e_str, &len);
CHECK(errRes);
# Set the sensor readout mode to Fast
camera.SensorReadoutMode.Value = "Fast"
# Get the current sensor readout mode
e = camera.SensorReadoutMode.Value

您也可以使用 pylon Viewer 轻松设置参数。