Please enable JavaScript to view this site.

IDS peak 2.10.0 / uEye+ firmware 3.34

IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.

Returns the current status of the counter included in the payload of the image.

Name

ChunkCounterStatus[ChunkCounterSelector]

Category

ChunkDataControl

Interface

Enumeration

Access

Read

Unit

-

Visibility

Expert

Values

CounterIdle

CounterTriggerWait

CounterActive

CounterCompleted

CounterOverflow

Standard

IDS

Availability uEye+

icon-gev icon-u3v

Availability uEye

-

Values description

CounterIdle: The counter is idle.

CounterTriggerWait: The counter is waiting for a trigger.

CounterActive: The counter is enabled.

CounterCompleted: The counter has reached the counter value (CounterDuration).

CounterOverflow: The counter has reached its maximum possible counter value.

Code example

C++

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

C#

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

Python

# Before accessing ChunkCounterStatus, make sure ChunkCounterSelector is set correctly
# Set ChunkCounterSelector to "Counter0" (str)
nodeMapRemoteDevice.FindNode("ChunkCounterSelector").SetCurrentEntry("Counter0")
# Determine the current entry of ChunkCounterStatus (str)
value = nodeMapRemoteDevice.FindNode("ChunkCounterStatus").CurrentEntry().SymbolicValue()
# Get a list of all available entries of ChunkCounterStatus
allEntries = nodeMapRemoteDevice.FindNode("ChunkCounterStatus").Entries()
availableEntries = []
for entry in allEntries:
  if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
          and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
      availableEntries.append(entry.SymbolicValue())

© 2024 IDS Imaging Development Systems GmbH