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.

Specifies the activation mode of the CounterResetSource signal.

hint_info

Not all activation values are available with all sources. Make sure that you specify the CounterResetSource before choosing a CounterResetActivation.

Name

CounterResetActivation[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: Resets the counter on the rising edge of the CounterResetSource signal.

FallingEdge: Resets the counter on the falling edge of the CounterResetSource signal.

AnyEdge: Resets the counter on the falling and rising edge of the CounterResetSource signal.

Code example

C++

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

C#

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

Python

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

© 2024 IDS Imaging Development Systems GmbH