Exposure Time (dart E)#
To automatically set the exposure time, use the Exposure Auto feature.
使用此功能#
設定 Exposure Time#
若要設定 exposure time:
- 將
ExposureAuto參數設為Off. - 將
ExposureTimeparameter 設為所需的 microsecond 級 exposure time。
The minimum exposure time, the maximum exposure time, and the increments in which the parameter can be changed vary by camera model.
Determining the Exposure Time#
To determine the current exposure time in microseconds, get the value of the ExposureTime 參數來啟用它。
This can be useful, for example, if the Exposure Auto auto function is enabled and you want to retrieve the automatically adjusted exposure time.
詳細資料#
| 相機型號 | Minimum Exposure Time [µs] | Maximum Exposure Time [µs] | Increment [µs] | ExposureTimeMode Parameter Available |
|---|---|---|---|---|
| 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);
您也可以使用 pylon Viewer 輕鬆設定參數。