Skip to content

Exposure Time (dart E)#

The Exposure Time camera feature specifies how long the image sensor is exposed to light during image acquisition.

To automatically set the exposure time, use the Exposure Auto feature.

Using the Feature#

Setting the Exposure Time#

To set the exposure time:

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

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 parameter.

This can be useful, for example, if the Exposure Auto auto function is enabled and you want to retrieve the automatically adjusted exposure time.

Specifics#

Camera Model Minimum Exposure Time [µs] Maximum Exposure Time [µs] Increment [µs] ExposureTimeMode Parameter Available
daA2500-60mc 14 33000 1 No
daA2500-60mci 68 2300000 1 No
daA3840-30mc 56 33000 1 No
daA4200-30mci 68 2300000 1 No

Sample Code#

// 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);

You can also use the pylon Viewer to easily set the parameters.