basler / pypylon

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

Device can't be opened error. #33

Closed lauritk closed 6 years ago

lauritk commented 6 years ago

I am having a strange problem. I got camera running in Python after running it in Pylon Viewer, but when I try to run camera later after unplugging and plugin the camera, I get following error:

camera.Open()
  File "C:\devel\Anaconda3\envs\blink\lib\site-packages\pypylon\pylon.py", line 2764, in Open
    return _pylon.InstantCamera_Open(self)
SystemError: <built-in function InstantCamera_Open> returned NULL without setting an error

What would cause this? For some reason there is no instance of camera to be open?

lauritk commented 6 years ago

Okay, I think I solved it. Error was caused by bad value set in Offset parameter when changing resolution.