Please enable JavaScript to view this site.

IDS peak 2.15.0 / uEye+ firmware 3.54

Specifies the activation mode of the PWMTriggerSource signal. The corresponding pulse-width modulation module that should be configured is defined in PWMSelector.

Name

PWMTriggerActivation[PWMSelector]

Category

PWMControl

Interface

Enumeration

Access

Read/Write

Unit

-

Visibility

Beginner

Values

LevelHigh
LevelLow

Standard

IDS

Availability uEye+

icon-gev icon-u3v

Availability uEye

icon-ui-gige icon-ui-usb3

Values description

LevelHigh: Specifies that the trigger is considered valid as long as the level of the PWMTriggerSource signal is HIGH.

LevelLow: Specifies that the trigger is considered valid as long as the level of the PWMTriggerSource signal is LOW.

hint_info

Pulse width modulation (PWM) is not supported by the following uEye models:

UI-304xLE

UI-313xLE

UI-327xLE

UI-359xLE Rev. 1 / UI-359xLE Rev. 2

UI-386xLE

UI-388xLE

Code example

C++

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

C#

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

Python

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