Sets the duration for which the timer is counting. When the timer reaches the TimerDuration value, it stops counting. At the same time, a "TimerEnd" signal is generated, the TimerStatus changes to "TimerCompleted" and the "TimerActive" signal is set to LOW.
|
If you want to record the duration of an operation, e.g. the ExposureTime (if ExposureMode is set to "TriggerControlled"), you should set the TimerDuration to its maximum value. |
Name |
TimerDuration[TimerSelector] |
Category |
|
Interface |
Float |
Access |
Read/Write |
Unit |
µs |
Visibility |
Expert |
Values |
0 ... 167777215 |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
- |
Code example
C++
// Before accessing TimerDuration, make sure TimerSelector is set correctly
// Set TimerSelector to "Timer0"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("TimerSelector")->SetCurrentEntry("Timer0");
// Determine the current TimerDuration
double value = nodeMapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("TimerDuration")->Value();
// Set TimerDuration to 0.0 us
nodeMapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("TimerDuration")->SetValue(0.0);
C#
// Before accessing TimerDuration, make sure TimerSelector is set correctly
// Set TimerSelector to "Timer0"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("TimerSelector").SetCurrentEntry("Timer0");
// Determine the current TimerDuration
double value = nodeMapRemoteDevice.FindNode<peak.core.nodes.FloatNode>("TimerDuration").Value();
// Set TimerDuration to 0.0 us
nodeMapRemoteDevice.FindNode<peak.core.nodes.FloatNode>("TimerDuration").SetValue(0.0);
Python
# Before accessing TimerDuration, make sure TimerSelector is set correctly
# Set TimerSelector to "Timer0" (str)
nodeMapRemoteDevice.FindNode("TimerSelector").SetCurrentEntry("Timer0")
# Determine the current TimerDuration (float)
value = nodeMapRemoteDevice.FindNode("TimerDuration").Value()
# Set TimerDuration to 0.0 us (float)
nodeMapRemoteDevice.FindNode("TimerDuration").SetValue(0.0)