basler / pypylon

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

Control channel not open #369

Open 2JONAS opened 3 years ago

2JONAS commented 3 years ago

When I use pypylon:

result = self.cameras[camera_id].RetrieveResult(5000, pylon.TimeoutHandling_ThrowException) success = result.GrabSucceeded()

I get an error: ERROR:root:Control channel not open. : LogicalErrorException thrown (file 'gxport.cpp', line 74) and I try to close and reopen camera during handle the exception: It will get error like: ERROR:root:Failed to open 'Basler raL2048-48gm#00305338A44F#192.168.187.2:3956'. The device is controlled by another application. Err: An attempt was made to access an address location which is currently/momentary not accessible. (0xE1018006) : RuntimeException thrown (file 'gigedevice.cpp', line 274)

The frequency of the problem is not high, usually after the camera works for several hours

SMA2016a commented 3 years ago

will the software works fine if you restart it?