IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Selects which bit of the user output register will be set by UserOutputValue.
Name |
UserOutputSelector |
Category |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
UserOutput0 UserOutput1 UserOutput2 UserOutput3 |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
|
Values description
•UserOutput0: Selects the bit 0 of the user output register.
•UserOutput1: Selects the bit 1 of the user output register.
•UserOutput2: Selects the bit 2 of the user output register.
•UserOutput3: Selects the bit 3 of the user output register.
Code example
C++
// Determine the current entry of UserOutputSelector
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("UserOutputSelector")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of UserOutputSelector
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("UserOutputSelector")->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 UserOutputSelector to "UserOutput0"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("UserOutputSelector")->SetCurrentEntry("UserOutput0");
C#
// Determine the current entry of UserOutputSelector
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("UserOutputSelector").CurrentEntry().SymbolicValue();
// Get a list of all available entries of UserOutputSelector
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("UserOutputSelector").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 UserOutputSelector to "UserOutput0"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("UserOutputSelector").SetCurrentEntry("UserOutput0");
Python
# Determine the current entry of UserOutputSelector (str)
value = nodeMapRemoteDevice.FindNode("UserOutputSelector").CurrentEntry().SymbolicValue()
# Get a list of all available entries of UserOutputSelector
allEntries = nodeMapRemoteDevice.FindNode("UserOutputSelector").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 UserOutputSelector to "UserOutput0" (str)
nodeMapRemoteDevice.FindNode("UserOutputSelector").SetCurrentEntry("UserOutput0")