Skip to content

How to solve "Node not existing (file 'genicam_wrap.cpp', line 16815)" #846

@Vinidata

Description

@Vinidata

I am trying to switch from automatic gain control to manual gain control after user input. I am setting gain and exposure time from sliders, but when I try and capture photos the error above is printed.

--- Switch to Manual Mode ---

        print("Switching to manual mode for capture...")
        # Store original values
        original_gain_auto = self._get_feature_value(['GainAuto'])
        original_exposure_auto = self._get_feature_value(['ExposureAuto'])
        original_gain_selector = self._get_feature_value(['GainSelector'])
        original_exposure_mode = self._get_feature_value(['ExposureMode'])

        # Set to manual capture mode
        self._set_feature_value(['GainAuto'], "Off")
        self._set_feature_value(['ExposureAuto'], "Off")
        self._set_feature_value(['GainSelector'], "DigitalAll")
        self._set_feature_value(['ExposureMode'], "Timed")

        # Set the values from the sliders
        if not self._set_feature_value(['Gain', 'GainRaw'], capture_gain):
            print("  - CRITICAL WARNING: Could not set Gain.")
        if not self._set_feature_value(['ExposureTime', 'ExposureTimeAbs'], capture_exposure_us):
            print("  - CRITICAL WARNING: Could not set ExposureTime.")

        print(f"  - Manual settings applied: Gain={capture_gain} (raw), Exposure={capture_exposure_us/1000:.3f}ms")

        # Allow settings to take effect and sensor to expose
        wait_time_s = (capture_exposure_us / 1000000.0) + 0.1
        print(f"  - Waiting {wait_time_s:.3f}s for settings to apply...")
        time.sleep(wait_time_s)

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup used

Intel x64
Windows
128gb of Ram

Basler acA3800-10gc

Camera(s) used

Basler acA3800-10gc (25151423)
106703-16;U;acA3800_10g;V4.0-0;1

Runtime information:

python: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
platform: win32/AMD64/10
pypylon: 4.2.0 / 10.2.1.471

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions