IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Controls, which Gain is selected for ChunkGain.
Name |
ChunkGainSelector |
Category |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
AnalogAll DigitalRed |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
- |
Values description
•AnalogAll: Selects the "AnalogAll" gain.
•DigitalAll: Selects the "DigitalAll" gain.
•DigitalRed: Selects the "DigitalRed" gain.
•DigitalGreen: Selects the "DigitalGreen" gain.
•DigitalBlue: Selects the "DigitalBlue" gain.
Code example
C++
// Determine the current entry of ChunkGainSelector
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkGainSelector")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of ChunkGainSelector
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkGainSelector")->Entries();
std::vector<std::shared_ptr<peak::core::nodes::EnumerationEntryNode>> availableEntries;
for(const auto & entry : allEntries)
{
if ((entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotAvailable)
&& (entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotImplemented))
{
availableEntries.emplace_back(entry);
}
}
// Set ChunkGainSelector to "AnalogAll"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkGainSelector")->SetCurrentEntry("AnalogAll");
C#
// Determine the current entry of ChunkGainSelector
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ChunkGainSelector").CurrentEntry().SymbolicValue();
// Get a list of all available entries of ChunkGainSelector
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ChunkGainSelector").Entries();
List<string> availableEntries = new List<string>();
for(int i = 0; i < allEntries.Count(); ++i)
{
if ((allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotAvailable)
&& (allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotImplemented))
{
availableEntries.Add(allEntries[i].SymbolicValue());
}
}
// Set ChunkGainSelector to "AnalogAll"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ChunkGainSelector").SetCurrentEntry("AnalogAll");
Python
# Determine the current entry of ChunkGainSelector (str)
value = nodeMapRemoteDevice.FindNode("ChunkGainSelector").CurrentEntry().SymbolicValue()
# Get a list of all available entries of ChunkGainSelector
allEntries = nodeMapRemoteDevice.FindNode("ChunkGainSelector").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())
# Set ChunkGainSelector to "AnalogAll" (str)
nodeMapRemoteDevice.FindNode("ChunkGainSelector").SetCurrentEntry("AnalogAll")