跳转到内容

Exposure Time (dart E)#

相机的 Exposure Time 功能指定在图像采集期间,图像传感器暴露于光线下的时间。

要自动设置曝光时间,请使用 Exposure Auto 功能。

该功能的使用#

设置曝光时间#

要设置曝光时间:

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

最短 Exposure Time,最长 Exposure Time 以及可以更改参数的增量因相机型号而异。

确定曝光时间#

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

例如,如果自动 Exposure Auto 功能已启用,且您想获取自动调节的 Exposure Time。

详情#

相机型号 最短曝光时间 [µs] 最长曝光时间 [µ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);

您还可以使用 pylon Viewer 轻松设置参数。