Please enable JavaScript to view this site.

IDS peak 2.10.0 / uEye+ firmware 3.34

IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.

Querying the minimum value, maximum value and increment of the exposure time

comfortC

peak_status status = PEAK_STATUS_SUCCESS;
peak_access_status accessStatus = peak_ExposureTime_GetAccessStatus(hCam);
if(PEAK_IS_READABLE(accessStatus))
{
  // ExposureTime is readable
  double doubleMin = 0.0;
  double doubleMax = 0.0;
  double doubleInc = 0.0;
 
  // Query the minimum, maximum and increment
  status = peak_ExposureTime_GetRange(hCam, &doubleMin, &doubleMax, &doubleInc);
  if (PEAK_ERROR(status)) { /* Error handling ... */ }
}

genericC++

// Query the minimum
double minExposureTime = nodemapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("ExposureTime")->Minimum();
 
// Query the maximum
double maxExposureTime = nodemapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("ExposureTime")->Maximum();
 
// Query the increment
if (nodemapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("ExposureTime")->HasConstantIncrement())
{
double incExposureTime = nodemapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("ExposureTime")->Increment();
}

Querying the current value of the exposure time

comfortC

peak_status status = PEAK_STATUS_SUCCESS;
double exposureTime = 0.0;
peak_access_status accessStatus = peak_ExposureTime_GetAccessStatus(hCam);
if(PEAK_IS_READABLE(accessStatus))
{
  // ExposureTime is readable, call the getter function
  status = peak_ExposureTime_Get(hCam, &exposureTime);  
  if (PEAK_ERROR(status)) { /* Error handling ... */ }
}

genericC++

double exposureTime = nodemapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("ExposureTime")->Value();

Setting the exposure time

comfortC

peak_status status = PEAK_STATUS_SUCCESS;
double exposureTime = 10000.0;
peak_access_status accessStatus = peak_ExposureTime_GetAccessStatus(hCam);
if(PEAK_IS_WRITEABLE(accessStatus))
{
  status = peak_ExposureTime_Set(hCam, exposureTime);
  if (PEAK_ERROR(status)) { /* Error handling ... */ }
}

genericC++

double exposureTime = 10000;
nodemapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("ExposureTime")->SetValue(exposureTime);

Example: Querying the range for the exposure time, the current value and setting a new, valid value

Prerequisite: The IDS peak API and a camera was opened (Device). See also Opening a camera (API)

© 2024 IDS Imaging Development Systems GmbH