Exposure Time (dart E)#
若要自動設定 Exposure Time,請使用 Exposure Auto 功能。
使用此功能#
設定 Exposure Time#
若要設定 Exposure Time:
- 將
ExposureAuto參數設為Off. - 將
ExposureTime參數設定為所需的微秒曝光時間。
最小曝光時間、最大曝光時間以及參數可調整的遞增步長會因 camera model 而異。
確定 Exposure Time#
若要以微秒為單位決定目前的 exposure time,請取得下列項目的值: ExposureTime 參數的值。
例如,如果啟用了 Exposure Auto 自動功能且您想要檢索自動調整的 exposure time,這會非常有用。
詳細資料#
| 相機型號 | Minimum Exposure Time [µs] | Maximum Exposure Time [µs] | 遞增量 [µs] | ExposureTimeMode Parameter 可用 |
|---|---|---|---|---|
| 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 輕鬆設定參數。