Please enable JavaScript to view this site.

IDS peak 26.06. / uEye+ firmware 3.94

Returns the default value for the selected gain as an absolute physical value.

Name

GainDefault[GainSelector]

Category

AnalogControl

Interface

Float

Access

Read

Unit

-

Visibility

Beginner

Values

Camera specific

Standard

IDS

Availability uEye+

-

Availability uEye

icon-ui-gige icon-ui-usb2 icon-ui-usb3

Code example

C++

// Before accessing GainDefault, make sure GainSelector is set correctly
// Set GainSelector to "All"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("GainSelector")->SetCurrentEntry("All");
// Determine the current GainDefault
double value = nodeMapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("GainDefault")->Value();

C#

// Before accessing GainDefault, make sure GainSelector is set correctly
// Set GainSelector to "All"
nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("GainSelector").SetCurrentEntry("All");
// Determine the current GainDefault
double value = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.FloatNode>("GainDefault").Value();

Python

# Before accessing GainDefault, make sure GainSelector is set correctly
# Set GainSelector to "All" (str)
nodeMapRemoteDevice.FindNode("GainSelector").SetCurrentEntry("All")
# Determine the current GainDefault (float)
value = nodeMapRemoteDevice.FindNode("GainDefault").Value()