Please enable JavaScript to view this site.

IDS peak 2.20.0 / uEye+ firmware 3.80

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

Reads or writes the current value of the selected counter.

hint_info

Writing to CounterValue is typically used to set the start value.

Name

CounterValue[CounterSelector]

Category

CounterAndTimerControl

Interface

Integer

Access

Read/Write

Unit

-

Visibility

Expert

Values

0 ... 16777215
Increment: 1

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

-

Code example

C++

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

C#

// Before accessing CounterValue, make sure CounterSelector is set correctly
// Set CounterSelector to "Counter0"
nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("CounterSelector").SetCurrentEntry("Counter0");
// Determine the current CounterValue
long value = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.IntegerNode>("CounterValue").Value();
// Set CounterValue to 0
nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.IntegerNode>("CounterValue").SetValue(0);

Python

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

© 2026 IDS Imaging Development Systems GmbH