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 trigger.
Name |
TriggerActivation[TriggerSelector] |
Category |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Beginner |
Values |
RisingEdge FallingEdge AnyEdge LevelHigh LevelLow |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
|
Values description
•RisingEdge: Specifies that the trigger is considered valid on the rising edge of the source signal. TriggerDelay can be set.
•FallingEdge: Specifies that the trigger is considered valid on the falling edge of the source signal. TriggerDelay can be set.
•AnyEdge: Specifies that the trigger is considered valid on the falling and/or rising edge of the source signal. TriggerDelay can be set. This feature is only supported by uEye+ cameras (GV and U3 models).
•LevelHigh: Specifies that the trigger is considered valid as long as the level of the source signal is HIGH. This feature is only supported by uEye+ cameras (GV and U3 models).
•LevelLow: Specifies that the trigger is considered valid as long as the level of the source signal is LOW. This feature is only supported by uEye+ cameras (GV and U3 models).
Code example
C++
// Before accessing TriggerActivation, make sure TriggerSelector is set correctly
// Set TriggerSelector to "ExposureStart"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("TriggerSelector")->SetCurrentEntry("ExposureStart");
// Determine the current entry of TriggerActivation
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("TriggerActivation")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of TriggerActivation
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("TriggerActivation")->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 TriggerActivation to "RisingEdge"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("TriggerActivation")->SetCurrentEntry("RisingEdge");
C#
// Before accessing TriggerActivation, make sure TriggerSelector is set correctly
// Set TriggerSelector to "ExposureStart"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("TriggerSelector").SetCurrentEntry("ExposureStart");
// Determine the current entry of TriggerActivation
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("TriggerActivation").CurrentEntry().SymbolicValue();
// Get a list of all available entries of TriggerActivation
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("TriggerActivation").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 TriggerActivation to "RisingEdge"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("TriggerActivation").SetCurrentEntry("RisingEdge");
Python
# Before accessing TriggerActivation, make sure TriggerSelector is set correctly
# Set TriggerSelector to "ExposureStart" (str)
nodeMapRemoteDevice.FindNode("TriggerSelector").SetCurrentEntry("ExposureStart")
# Determine the current entry of TriggerActivation (str)
value = nodeMapRemoteDevice.FindNode("TriggerActivation").CurrentEntry().SymbolicValue()
# Get a list of all available entries of TriggerActivation
allEntries = nodeMapRemoteDevice.FindNode("TriggerActivation").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 TriggerActivation to "RisingEdge" (str)
nodeMapRemoteDevice.FindNode("TriggerActivation").SetCurrentEntry("RisingEdge")