Exposure Time (dart E)#
要自动设置曝光时间,请使用 Exposure Auto 功能。
该功能的使用#
设置曝光时间#
要设置曝光时间:
- 设置
ExposureAuto
parameter toOff
. - 设置
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 | 无 |
示例代码#
/* 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);
/* 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);
You can also use the pylon Viewer to easily set the parameters.