Skip to content

Timeout on long exposure times with cameraBasler

When trying to record images with a long exposure times with the cameraBasler implementation I often get timeoutErrors. This is caused by the timeout parameter that is passed to the pypylon implemented device.GrabOne(timeout) method. When I first implemented the Basler camera for pyCameras I set a private variable (self._timeout) with a value of 200. I assume this is microseconds. I am not sure how and why I chose this value, but increasing it allows for longer exposure times.

I suggest increasing the value to 2000 since the longest possible exposure time (with the cameras i use) is 1 second. So setting a timeout limit of 2 seconds should be easily enough...