IDS Peak comfortSDK, genericSDK, AFL, ICL, and IPL developer manuals are external documents.
Please contact us if you need these manuals.
Selects the counter to display its value and status.
Name |
ChunkCounterSelector |
Category |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
Counter0 Counter1 |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
- |
Values description
•Counter0: Selects counter 0.
•Counter1: Selects counter 1.
Code example
C++
// Determine the current entry of ChunkCounterSelector
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkCounterSelector")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of ChunkCounterSelector
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkCounterSelector")->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 ChunkCounterSelector to "Counter0"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkCounterSelector")->SetCurrentEntry("Counter0");
C#
// Determine the current entry of ChunkCounterSelector
string value = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("ChunkCounterSelector").CurrentEntry().SymbolicValue();
// Get a list of all available entries of ChunkCounterSelector
allEntries = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("ChunkCounterSelector").Entries();
List<string> availableEntries = new List<string>();
for(int i = 0; i < allEntries.Count(); ++i)
{
if ((allEntries[i].AccessStatus() != IDSImaging.Peak.API.Core.Nodes.NodeAccessStatus.NotAvailable)
&& (allEntries[i].AccessStatus() != IDSImaging.Peak.API.Core.Nodes.NodeAccessStatus.NotImplemented))
{
availableEntries.Add(allEntries[i].SymbolicValue());
}
}
// Set ChunkCounterSelector to "Counter0"
nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("ChunkCounterSelector").SetCurrentEntry("Counter0");
Python
# Determine the current entry of ChunkCounterSelector (str)
value = nodeMapRemoteDevice.FindNode("ChunkCounterSelector").CurrentEntry().SymbolicValue()
# Get a list of all available entries of ChunkCounterSelector
allEntries = nodeMapRemoteDevice.FindNode("ChunkCounterSelector").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 ChunkCounterSelector to "Counter0" (str)
nodeMapRemoteDevice.FindNode("ChunkCounterSelector").SetCurrentEntry("Counter0")