跳转到内容
STAGING SERVER
DEVELOPMENT SERVER

Acquisition Line Rate#

通过 Acquisition Line Rate camera feature,您可以为相机的 line rate 设置上限。

如果您希望相机在 free run image acquisition 下以恒定的行频运行,这会非常有用。

该功能的使用#

运作原理#

如果启用了 Acquisition Line Rate 功能,则相机的最大行频将受到您为采集行频参数输入的值的限制。

例如,将采集行频设为 80 kHz 会产生以下效果:

  • 如果其他 factors limiting the line rate 允许的行频大于 80 kHz,行频将保持在 80 kHz 的恒定值。
  • 如果其他限制行频的因素仅允许小于 80 kHz 的行频,则行频将不受 Acquisition Line Rate 功能的影响。

信息

要确定实际线路速率,请使用“最终Acquisition Line Rate功能。

设置Acquisition Line Rate#

  1. 设置 AcquisitionLineRateEnable 参数至 true.
  2. 设置 AcquisitionLineRate 将参数设置为摄像机行速率(单位:kHz)的所需上限。

示例代码#

// Set the upper limit of the camera's line rate to 80 kHz
camera.AcquisitionLineRateEnable.SetValue(true);
camera.AcquisitionLineRate.SetValue(80.0);
INodeMap& nodemap = camera.GetNodeMap();
// Set the upper limit of the camera's line rate to 80 kHz
CBooleanParameter(nodemap, "AcquisitionLineRateEnable").SetValue(true);
CFloatParameter(nodemap, "AcquisitionLineRate").SetValue(80.0);
// Set the upper limit of the camera's line rate to 80 kHz
camera.Parameters[PLCamera.AcquisitionLineRateEnable].SetValue(true);
camera.Parameters[PLCamera.AcquisitionLineRate].SetValue(80.0);
/* 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 upper limit of the camera's line rate to 80 kHz */
errRes = PylonDeviceSetBooleanFeature(hdev, "AcquisitionLineRateEnable", 1);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "AcquisitionLineRate", 80.0);
CHECK(errRes);

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