IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Returns the interface wide unique identifier of the selected device. This value only changes on execution of the DeviceUpdateList command. Corresponds to the "IFGetDeviceID" function with the index corresponding to DeviceSelector.
Name |
DeviceID[DeviceSelector] |
Category |
|
Interface |
String |
Access |
Read |
Unit |
- |
Visibility |
Expert |
Values |
- |
Standard |
GenTL SFNC |
Availability uEye+ |
|
Availability uEye |
|
Code Example
C++
// Before accessing DeviceID, make sure DeviceSelector is set correctly
// Set DeviceSelector to 0
nodeMapInterface->FindNode<peak::core::nodes::IntegerNode>("DeviceSelector")->SetValue(0);
// Determine the current DeviceID
std::string value = nodeMapInterface->FindNode<peak::core::nodes::StringNode>("DeviceID")->Value();
C#
// Before accessing DeviceID, make sure DeviceSelector is set correctly
// Set DeviceSelector to 0
nodeMapInterface.FindNode<peak.core.nodes.IntegerNode>("DeviceSelector").SetValue(0);
// Determine the current DeviceID
string value = nodeMapInterface.FindNode<peak.core.nodes.StringNode>("DeviceID").Value();
Python
# Before accessing DeviceID, make sure DeviceSelector is set correctly
# Set DeviceSelector to 0 (int)
nodeMapInterface.FindNode("DeviceSelector").SetValue(0)
# Determine the current DeviceID (str)
value = nodeMapInterface.FindNode("DeviceID").Value()