コンテンツにスキップ

Exposure Time (dart E)#

Exposure Time カメラ機能は、画像取得中に画像センサーが露光する時間を指定します。

露光時間を自動的に設定するには、Exposure Auto機能を使用します。

機能を使用する#

Exposure Timeの設定#

露光時間を設定するには、次の手順に従います。

  1. Set the ExposureAuto parameter to Off.
  2. Set the ExposureTime parameter to the desired exposure time in microseconds.

最小露光時間、最大露光時間、およびパラメーターを変更できる増分は、カメラモデルによって異なります。

Exposure Timeの確認#

To determine the current exposure time in microseconds, get the value of the ExposureTime parameter.

これは、例えば、Exposure Autoオートファンクションが有効になっていて、自動調整露光時間を取得する場合などに便利です。

特性#

カメラモデル Minimum Exposure Time [µs] Maximum Exposure Time [µs] 増分[µ s] 使用可能なExposureTimeModeパラメーター
daA2500-60mc 14 33000 1 いいえ
daA2500-60mci 68 2300000 1 いいえ
daA3840-30mc 56 33000 1 いいえ
daA4200-30mci 68 2300000 1 いいえ

サンプルコード#

// Determine the current exposure time
double d = camera.ExposureTime.GetValue();
// Set the exposure time to 3500 microseconds
camera.ExposureTime.SetValue(3500.0);
INodeMap& nodemap = camera.GetNodeMap();
// Determine the current exposure time
double d = CFloatParameter(nodemap, "ExposureTime").GetValue();
// Set the exposure time to 3500 microseconds
CFloatParameter(nodemap, "ExposureTime").SetValue(3500.0);
// Determine the current exposure time
double d = camera.Parameters[PLCamera.ExposureTime].GetValue();
// Set the exposure time to 3500 microseconds
camera.Parameters[PLCamera.ExposureTime].SetValue(3500.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 */
double d = 0;
/* Determine the current exposure time */
errRes = PylonDeviceGetFloatFeature(hdev, "ExposureTime", &d);
CHECK(errRes);
/* Set the exposure time to 3500 microseconds */
errRes = PylonDeviceSetFloatFeature(hdev, "ExposureTime", 3500.0);
CHECK(errRes);
# Determine the current exposure time
d = camera.ExposureTime.Value
# Set the exposure time to 3500 microseconds
camera.ExposureTime.Value = 3500.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 */
double d = 0;
/* Determine the current exposure time */
errRes = PylonDeviceGetFloatFeature(hdev, "ExposureTime", &d);
CHECK(errRes);
/* Set the exposure time to 3500 microseconds */
errRes = PylonDeviceSetFloatFeature(hdev, "ExposureTime", 3500.0);
CHECK(errRes);

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