Specifies the activation mode of the CounterTriggerSource signal.
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 |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
RisingEdge FallingEdge AnyEdge LevelHigh LevelLow |
Standard |
SFNC |
Availability uEye+ |
|
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.
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")