コンテンツにスキップ

Acquisition Frame Rate (dart E)#

Acquisition Frame Rateカメラ機能を使用すると、カメラのフレームレートの上限を設定できます。

これは、フリーラン画像取得において一定のフレームレートでカメラを操作する場合に便利です。

機能を使用する#

仕組み#

Acquisition Frame Rateの機能が有効になっている場合、カメラの最大フレームレートは、撮影フレームレートパラメーターに入力した値によって制限されます。

例えば、撮影フレームレートを20フレーム/秒(fps)に設定すると、次のような効果があります。

  • フレームレートを制限する他の要因で20fpsを超えるフレームレートが許可されている場合、フレームレートは20fpsで一定に維持されます。
  • フレームレートを制限する他の要因で、20fps未満のフレームレートしか可能でない場合、フレームレートは、Acquisition Frame Rate機能の影響を受けません。

Acquisition Frame Rateの設定#

  1. Set the AcquisitionFrameRateEnable parameter to true (if available).
  2. Set the AcquisitionFrameRate parameter to the desired upper limit for the camera's frame rate in frames per second.

特性#

カメラモデル 使用可能なAcquisitionFrameRateEnableパラメーター
daA2500-60mc いいえ
daA2500-60mci はい
daA3840-30mc Acquisition Frame Rate機能はサポートされていません
daA4200-30mci はい

サンプルコード#

// Set the upper limit of the camera's frame rate to 30 fps
camera.AcquisitionFrameRateEnable.SetValue(true);
camera.AcquisitionFrameRate.SetValue(30.0);
INodeMap& nodemap = camera.GetNodeMap();
// Set the upper limit of the camera's frame rate to 30 fps
CBooleanParameter(nodemap, "AcquisitionFrameRateEnable").SetValue(true);
CFloatParameter(nodemap, "AcquisitionFrameRate").SetValue(30.0);
// Set the upper limit of the camera's frame rate to 30 fps
camera.Parameters[PLCamera.AcquisitionFrameRateEnable].SetValue(true);
camera.Parameters[PLCamera.AcquisitionFrameRate].SetValue(30.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 frame rate to 30 fps */
errRes = PylonDeviceSetBooleanFeature(hdev, "AcquisitionFrameRateEnable", 1);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "AcquisitionFrameRate", 30.0);
CHECK(errRes);
# Set the upper limit of the camera's frame rate to 30 fps
camera.AcquisitionFrameRateEnable.Value = True
camera.AcquisitionFrameRate.Value = 30.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 frame rate to 30 fps */
errRes = PylonDeviceSetBooleanFeature(hdev, "AcquisitionFrameRateEnable", 1);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "AcquisitionFrameRate", 30.0);
CHECK(errRes);

pylonViewerアを使用して、パラメーターを簡単に設定することもできます。