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 current camera name

comfortC

size_t userDefinedNameSize = 0;
status = peak_Camera_UserDefinedName_Get(hCam, NULL, &userDefinedNameSize);
if (PEAK_SUCCESS(status))
{
char* userDefinedName = NULL;
userDefinedName = (char*)malloc(userDefinedNameSize);
if (userDefinedName)
{
  status = peak_Camera_UserDefinedName_Get(hCam, userDefinedName, &userDefinedNameSize);
  if (PEAK_SUCCESS(status))
  {
    // ...
  }
 
  free(userDefinedName);
}
}

genericC++

std::string name = nodemapRemoteDevice->FindNode<peak::core::nodes::StringNode>("DeviceUserID")->Value();

Setting a camera name, e.g. "camera1"

comfortC

status = peak_Camera_UserDefinedName_Set(hCam, “camera1”);
if (PEAK_ERROR(status))
{
// Error handling
}

genericC++

nodemapRemoteDevice->FindNode<peak::core::nodes::StringNode>("DeviceUserID")->SetValue("camera1");

Querying the maximum possible length of the string

genericC++

auto length = nodemapRemoteDevice->FindNode<peak::core::nodes::StringNode>("DeviceUserID")->MaximumLength();

Complete example

© 2024 IDS Imaging Development Systems GmbH