Acquisition Line Rate#
如果您希望相机在 free run image acquisition 模式下以恒定的行频运行,此功能非常有用。
该功能的使用#
运作原理#
如果启用了 Acquisition Line Rate 功能,相机的最大行频将受到您为 acquisition line rate 参数输入的值的限制。
例如,将 acquisition line rate 设置为 80 kHz 会产生以下效果:
- 如果其他 factors limiting the line rate 允许的行频大于 80 kHz,则行频将保持在 80 kHz 的恒定行频。
- 如果其他限制行频的因素仅允许小于 80 kHz 的行频,则行频不会受到 Acquisition Line Rate 功能的影响。
信息
要确定实际行频,请使用 Resulting Acquisition Line Rate 功能。
设置 Acquisition Line Rate#
- 设置
AcquisitionLineRateEnable将参数设置为true. - 设置
AcquisitionLineRate将参数设置为相机行频所需的上限(以 kHz 为单位)。
示例代码#
/* 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 轻松设置参数。