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

Acquisition Line Rate#

Acquisition Line Rate 攝影機功能可讓您為攝影機的線速設定上限。

若您希望在自由運行影像擷取模式下,以恆定的線速操作相機,此功能將十分實用。

使用功能#

運作原理#

若已啟用「Acquisition Line Rate 」功能,相機的最大行速將受您為「擷取行速」參數所輸入的數值所限制。

例如,將採樣線速率設定為 80 kHz 會產生以下效果:

  • 若其他限制傳輸速率的因素允許傳輸速率高於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);

您也可以 use the pylon Viewer 來輕鬆設定參數。