コンテンツにスキップ
ステージングサーバー
開発サーバー

Acquisition Line Rate#

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

フリーラン画像取得でカメラを一定のラインレートで動作させたい場合に便利です。

機能を使用する#

仕組み#

Acquisition Line Rate 機能が有効な場合、カメラの最大ラインレートは、Acquisition Line Rate パラメーターに入力した値によって制限されます。

たとえば、Acquisition Line Rate を 80 kHz に設定すると、次のような効果があります。

  • ラインレートを制限する他の要因によって 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を使用して、パラメーターを簡単に設定することもできます。