Acquisition Line Rate#
若您希望在自由運行影像擷取模式下,以恆定的線速操作相機,此功能將十分實用。
使用功能#
運作原理#
若已啟用「Acquisition Line Rate 」功能,相機的最大行速將受您為「擷取行速」參數所輸入的數值所限制。
例如,將採樣線速率設定為 80 kHz 會產生以下效果:
- 若其他限制傳輸速率的因素允許傳輸速率高於80 kHz,則傳輸速率將維持在 80 kHz 的恆定值。
- 若其他限制傳輸速率的因素僅允許傳輸速率低於80 kHz,則該傳輸速率將不會受到「Acquisition Line Rate 」功能的影響。
資訊
若要確定實際的線速,請使用「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);
您也可以 use the pylon Viewer 來輕鬆設定參數。