IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Controls the loss handling.
Name |
LossHandlingMode |
Category |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
Limited Off Unlimited |
Standard |
IDS |
Availability uEye+ |
|
Availability uEye |
- |
Values description
Code example
C++
// Determine the current entry of LossHandlingMode
std::string value = nodeMapDataStream->FindNode<peak::core::nodes::EnumerationNode>("LossHandlingMode")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of LossHandlingMode
auto allEntries = nodeMapDataStream->FindNode<peak::core::nodes::EnumerationNode>("LossHandlingMode")->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 LossHandlingMode to "Unlimited"
nodeMapDataStream->FindNode<peak::core::nodes::EnumerationNode>("LossHandlingMode")->SetCurrentEntry("Unlimited");
C#
// Determine the current entry of LossHandlingMode
string value = nodeMapDataStream.FindNode<peak.core.nodes.EnumerationNode>("LossHandlingMode").CurrentEntry().SymbolicValue();
// Get a list of all available entries of LossHandlingMode
allEntries = nodeMapDataStream.FindNode<peak.core.nodes.EnumerationNode>("LossHandlingMode").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 LossHandlingMode to "Unlimited"
nodeMapDataStream.FindNode<peak.core.nodes.EnumerationNode>("LossHandlingMode").SetCurrentEntry("Unlimited");
Python
# Determine the current entry of LossHandlingMode (str)
value = nodeMapDataStream.FindNode("LossHandlingMode").CurrentEntry().SymbolicValue()
# Get a list of all available entries of LossHandlingMode
allEntries = nodeMapDataStream.FindNode("LossHandlingMode").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())
# Set LossHandlingMode to "Unlimited" (str)
nodeMapDataStream.FindNode("LossHandlingMode").SetCurrentEntry("Unlimited")