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 CounterTriggerSource signal.

hint_info

Make sure that you specify the CounterTriggerSource before choosing a CounterTriggerActivation because not all activation values are available with all sources.

Name

CounterTriggerActivation[CounterSelector]

Category

CounterAndTimerControl

Interface

Enumeration

Access

Read/Write

Unit

-

Visibility

Expert

Values

RisingEdge

FallingEdge

AnyEdge

LevelHigh

LevelLow

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

-

Values description

RisingEdge: Starts the counter on the rising edge of the CounterTriggerSource signal.

FallingEdge: Starts the counter on the falling edge of the CounterTriggerSource signal.

AnyEdge: Starts the counter on the falling and rising edge of the CounterTriggerSource signal.

LevelHigh: The counter counts as long as the level of the CounterTriggerSource signal is HIGH.

LevelLow: The counter counts as long as the level of the CounterTriggerSource signal is LOW.

hint_info

The activation modes "LevelHigh" and "LevelLow" are recommended only for CounterTriggerSource "Line" 0, 1, 2, 3 or "UserOutput" 0, 1, 2, 3.

Code example

C++

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

C#

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

Python

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

© 2024 IDS Imaging Development Systems GmbH