跳至內容
測試伺服器
開發伺服器

Acquisition Line Rate#

透過 Acquisition Line Rate camera feature,您可以為相機的 line rate 設定上限。

如果您想在 free run image acquisition 中以固定的行頻運作相機,這將非常有用。

使用此功能#

運作原理#

如果啟用了 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#

  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 來輕鬆設定參數。