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.

Selects which counter to configure.

Name

CounterSelector

Category

CounterAndTimerControl

Interface

Enumeration

Access

Read/Write

Unit

-

Visibility

Expert

Values

Counter0
Counter1

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

-

Values description

Counter0: Selects counter 0.

Counter1: Selects counter 1.

Code example

C++

// Determine the current entry of CounterSelector
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterSelector")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of CounterSelector
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterSelector")->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 CounterSelector to "Counter0"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterSelector")->SetCurrentEntry("Counter0");

C#

// Determine the current entry of CounterSelector
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("CounterSelector").CurrentEntry().SymbolicValue();
// Get a list of all available entries of CounterSelector
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("CounterSelector").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 CounterSelector to "Counter0"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("CounterSelector").SetCurrentEntry("Counter0");

Python

# Determine the current entry of CounterSelector (str)
value = nodeMapRemoteDevice.FindNode("CounterSelector").CurrentEntry().SymbolicValue()
# Get a list of all available entries of CounterSelector
allEntries = nodeMapRemoteDevice.FindNode("CounterSelector").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 CounterSelector to "Counter0" (str)
nodeMapRemoteDevice.FindNode("CounterSelector").SetCurrentEntry("Counter0")

© 2024 IDS Imaging Development Systems GmbH