 
IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Specifies the activation mode of the CounterEventSource signal.
| 
 | Select the value of the CounterEventSource before choosing the value of the CounterEventActivation. | 
| Name | CounterEventActivation[CounterSelector] | 
| Category | |
| Interface | Enumeration | 
| Access | Read/Write | 
| Unit | - | 
| Visibility | Expert | 
| Values | RisingEdge FallingEdge AnyEdge | 
| Standard | SFNC | 
| Availability uEye+ | 
 | 
| 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<peak.core.nodes.EnumerationNode>("CounterEventSource").SetCurrentEntry("ExposureStart");
// Determine the current entry of CounterEventActivation
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("CounterEventActivation").CurrentEntry().SymbolicValue();
// Get a list of all available entries of CounterEventActivation
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("CounterEventActivation").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 CounterEventActivation to "RisingEdge" 
nodeMapRemoteDevice.FindNode<peak.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")