Please enable JavaScript to view this site.

IDS peak 2.20.0 / uEye+ firmware 3.80

IDS Peak comfortSDK, genericSDK, AFL, ICL, and IPL developer manuals are external documents.
Please contact us if you need these manuals.

Specifies the activation mode of the CounterEventSource signal.

hint_info

Select the value of the CounterEventSource before choosing the value of the CounterEventActivation.

Name

CounterEventActivation[CounterSelector]

Category

CounterAndTimerControl

Interface

Enumeration

Access

Read/Write

Unit

-

Visibility

Expert

Values

RisingEdge

FallingEdge

AnyEdge

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

-

Values description

RisingEdge: Counts on the rising edge of the CounterEventSource signal.

FallingEdge: Counts on the falling edge of the CounterEventSource signal.

AnyEdge: Counts on the falling and rising edge of the CounterEventSource signal.

Code example

C++

// Before accessing CounterEventActivation, make sure CounterEventSource is set correctly
// Set CounterEventSource to "ExposureStart"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterEventSource")->SetCurrentEntry("ExposureStart");
// Determine the current entry of CounterEventActivation
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterEventActivation")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of CounterEventActivation
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterEventActivation")->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 CounterEventActivation to "RisingEdge"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterEventActivation")->SetCurrentEntry("RisingEdge");

C#

// Before accessing CounterEventActivation, make sure CounterEventSource is set correctly
// Set CounterEventSource to "ExposureStart"
nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("CounterEventSource").SetCurrentEntry("ExposureStart");
// Determine the current entry of CounterEventActivation
string value = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("CounterEventActivation").CurrentEntry().SymbolicValue();
// Get a list of all available entries of CounterEventActivation
allEntries = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("CounterEventActivation").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 CounterEventActivation to "RisingEdge"
nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("CounterEventActivation").SetCurrentEntry("RisingEdge");

Python

# Before accessing CounterEventActivation, make sure CounterEventSource is set correctly
# Set CounterEventSource to "ExposureStart" (str)
nodeMapRemoteDevice.FindNode("CounterEventSource").SetCurrentEntry("ExposureStart")
# Determine the current entry of CounterEventActivation (str)
value = nodeMapRemoteDevice.FindNode("CounterEventActivation").CurrentEntry().SymbolicValue()
# Get a list of all available entries of CounterEventActivation
allEntries = nodeMapRemoteDevice.FindNode("CounterEventActivation").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 CounterEventActivation to "RisingEdge" (str)
nodeMapRemoteDevice.FindNode("CounterEventActivation").SetCurrentEntry("RisingEdge")

© 2026 IDS Imaging Development Systems GmbH