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

_genicam.TimeoutException: Grab timed out. : TimeoutException thrown (file 'instantcameraimpl.h', line 1064) #382

Open ToKraTheSecond opened 3 years ago

ToKraTheSecond commented 3 years ago

I am able to take single shot and continuous shot via pylon viewer, but not via pypylon examples. For example gige_action_command.py returns:

using a2A1920-51gcPRO @ 192.168.111.193
ActionDeviceKey 0x0
ActionGroupKey 0x0
ActionGroupMask 0x0
TriggerSource Line1
TriggerMode Off
AcquisitionMode SingleFrame

ActionDeviceKey 0x4711
ActionGroupKey 0x112233
ActionGroupMask 0xffffffff
TriggerSource Line1
TriggerMode Off
AcquisitionMode Continuous

issuing no-wait action command
Traceback (most recent call last):
  File "test.py", line 108, in <module>
    with cam.RetrieveResult(1000, pylon.TimeoutHandling_ThrowException):
  File "c:\tools\Anaconda3\envs\basler-cams\lib\site-packages\pypylon\pylon.py", line 3458, in RetrieveResult
    return _pylon.InstantCamera_RetrieveResult(self, *args)
_genicam.TimeoutException: Grab timed out. : TimeoutException thrown (file 'instantcameraimpl.h', line 1064)

Can anybody pls pinpoint me how to solve / debug this issue?

ToKraTheSecond commented 3 years ago

Exported cam node settings: node_map_a2A1920-51gcPRO.txt

ToKraTheSecond commented 3 years ago

I double checked all settings and for some reason pylon GigE Vision Driver was not turned on in ethernet adapter settings. As mentioned in docs Network Configuration (GigE Cameras) basler docs link. But I set it on few days ago :/. Weird :O :)

It works now : ))