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.

Sets the number of events (duration) before the counter stops counting. The event for incrementing the counter is defined by CounterEventSource. When the counter reaches the CounterDuration value, it stops counting. At the same time, a "CounterEnd" signal is generated, the CounterStatus changes to "CounterCompleted" and the "CounterActive" signal is set to LOW.

Name

CounterDuration[CounterSelector]

Category

CounterAndTimerControl

Interface

Integer

Access

Read/Write

Unit

-

Visibility

Expert

Values

0 ... 167777215
Increment: 1

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

-

Code example

C++

// Before accessing CounterDuration, make sure CounterSelector is set correctly
// Set CounterSelector to "Counter0"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("CounterSelector")->SetCurrentEntry("Counter0");
// Determine the current CounterDuration
int64_t value = nodeMapRemoteDevice->FindNode<peak::core::nodes::IntegerNode>("CounterDuration")->Value();
// Set CounterDuration to 0
nodeMapRemoteDevice->FindNode<peak::core::nodes::IntegerNode>("CounterDuration")->SetValue(0);

C#

// Before accessing CounterDuration, make sure CounterSelector is set correctly
// Set CounterSelector to "Counter0"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("CounterSelector").SetCurrentEntry("Counter0");
// Determine the current CounterDuration
long value = nodeMapRemoteDevice.FindNode<peak.core.nodes.IntegerNode>("CounterDuration").Value();
// Set CounterDuration to 0
nodeMapRemoteDevice.FindNode<peak.core.nodes.IntegerNode>("CounterDuration").SetValue(0);

Python

# Before accessing CounterDuration, make sure CounterSelector is set correctly
# Set CounterSelector to "Counter0" (str)
nodeMapRemoteDevice.FindNode("CounterSelector").SetCurrentEntry("Counter0")
# Determine the current CounterDuration (int)
value = nodeMapRemoteDevice.FindNode("CounterDuration").Value()
# Set CounterDuration to 0 (int)
nodeMapRemoteDevice.FindNode("CounterDuration").SetValue(0)

© 2024 IDS Imaging Development Systems GmbH