PyPylon icon indicating copy to clipboard operation
PyPylon copied to clipboard

Key does not exist cam.properties

Open madhusudangr opened this issue 8 years ago • 0 comments

Key not found error in when trying to set cam.properties . The others seems to work fine, does anyone have any idea about this ?

>>> cam.properties['ExposureTime']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cython\factory.pyx", line 87, in pypylon.cython.factory._PropertyMap.__getitem__
KeyError: 'Key does not exist'

>>> cam.properties['DeviceLinkThroughputLimitMode']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cython\factory.pyx", line 87, in pypylon.cython.factory._PropertyMap.__getitem__
KeyError: 'Key does not exist'

The above two throws an error, while this works

>>> import pypylon
>>> pypylon.pylon_version.version
'5.0.10.build_10613'
>>> available_cameras =pypylon.factory.find_devices()
>>> available_cameras
[<DeviceInfo Basler acA1300-60gc (xxxxxxx)>]
>>> cam = pypylon.factory.create_device(available_cameras[0])
>>> cam.opened
False
>>> cam.open()
>>> cam.grab_images(1)
<generator object at 0x00000xxxxxxxxxx>

Does anyone have a clue what is happening ?

madhusudangr avatar Oct 16 '17 16:10 madhusudangr