basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
566 stars 207 forks source link

Enum entry is not writable : 'PixelFormat' #642

Open sebahelm opened 1 year ago

sebahelm commented 1 year ago

Hi all

I am using a C++ script to record hardware triggered video with a Basler USB camera. So far we used an acA1300-200uc camera and it worked fine. Now we have a new camera model 1440-220uc. Recording with the Basler Pylon interface still works perfectly. But when I use our C++ code, I get the following error:

Could not apply configuration. Pylon::GenericException caught in OnOpened method msg = Failed to write enum value. Enum entry is not writable : AccessException thrown in node 'PixelFormat' while calling 'PixelFormat.FromString()' (file 'enumeration')

Does anyone know what this means/how to fix it? I think it might be more of a problem with the camera's initial setting then a problem with the c++ code.

Thx :) Sebastian

SMA2016a commented 1 year ago

since the same code works with acA1300-200uc I would assume that the Pixelformat that you try to change is not supported by the new camera. Simply check with pylon viewer is pixel format is available.

or simply post your code line.

sebahelm commented 1 year ago

Thx @SMA2016a . I still check the changing the pixel format and I also compared the pixel formats of both cameras in the Pylon GUI. It seems the same. Is there any problems with the new cameras when I'm using the Pylon 6,1 SDK? Our code also have problems with newer versions.

SMA2016a commented 1 year ago

[Is there any problems with the new cameras when I'm using the Pylon 6,1 SDK?] No [Our code also have problems with newer versions] do you have any error message